我正在尝试在Drupal 7.59中创建并启用一个模块,但在管理页面上却出现以下问题。
This version is not compatible with Drupal 7.x and should be replaced.
模块名称为“事件”,.info文件内容为
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) {
}
我们非常感谢您的帮助。预先感谢。
答案 0 :(得分:0)
对不起,我的错。应该是core = 7.x