Я пытаюсь создать и включить модуль в Drupal 7.59, и я получаю ниже вопрос на странице администратора.
This version is not compatible with Drupal 7.x and should be replaced.
Имя модуля - "события" и.содержание информационного файла
name = Events Creation
description = This module will create media events
core = 7.59
И код модуля событий
<?php
function events_menu() {
$items = array();
$items['test/events'] = array( //this creates a URL that will call this form at "examples/form-example"
'title' => 'Event Creation Form', //page title
'description' => 'A form to create an event.',
'page callback' => 'drupal_get_form', //this is the function that will be called when the page is accessed. for a form, use drupal_get_form
'page arguments' => array('events_form'), //put the name of the form here
'access callback' => TRUE
);
return $items;
}
function events_form($form, &$form_state) {
$form['submit_button'] = array(
'#type' => 'submit',
'#value' => t('Click Here!'),
);
return $form;
}
function events_form_validate($form, &$form_state) {
}
function events_form_submit($form, &$form_state) {
}
Любая помощь очень важна.Заранее спасибо.