我是drupal的新手,目前正在学习drupal 7。
我指的是 drupal 7 的书
我试图创建我的第一个自定义模块
在书中提到您可以在以下目录之一中创建模块
1)/站点/所有/模块
2) /sites/default/modules
我的模块名称是第一个
我在 /sites/default/modules/first 中创建了我的模块
在这个目录中有两个文件
1)第一信息
2) first.module
第一个 .info 文件的内容是
;$Id$
name = First
description = A first module.
package = Drupal 7 Development
core = 7.x
files[] = first.module
;dependencies[] = autoload
;php = 5.4
fisrt.module 文件的内容是
<?php
// $Id$
/**
* @file
* A module exemplifying Drupal coding practices and APIs.
*
* This module provides a block that lists all of the
* installed modules. It illustrates coding standards,
* practices, and API use for Drupal 7.
*/
/**
* Implements hook_help().
*/
function first_help($path, $arg) {
if ($path == 'admin/help#first') {
return t('A demonstration module.');
}
}
?>
当我尝试检查模块列表时,我看不到我创建的模块
我已经厌倦了清除缓存并检查仍然没有显示
谁能告诉我哪里错了。
提前致谢