我是新来的Drupal,目前正在学习的Drupal 7Drupal 7的新创建自定义的模块不显示模块列表了
我对Drupal 7的指书
我试图创建我的第一个自定义模块
在这本书是一提的是,你可以在下面的目录
1)的一个创建模块/网站/所有/模块
2)/网站/默认/模块
我模块的名第一
我已经创建了我的模块/网站/默认/模块/第一
在这个目录有两个文件
1)first.info
2)first.module
内容的第一.info文件的fisrt.module文件
;$Id$
name = First
description = A first module.
package = Drupal 7 Development
core = 7.x
files[] = first.module
;dependencies[] = autoload
;php = 5.4
内容是
<?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.');
}
}
?>
当我尝试检查模块的名单我不能够看到我创建模块
我已经厌倦了清理缓存和检查仍然没有显示
有谁能够告诉我,我在哪里错了。
在此先感谢
感谢您的回复,我尝试了你解释仍然不工作 – utsav 2013-03-01 12:03:40
检查信息和模块文件上的文件名。您在上面都有错别字(信息文件名有空格,模块文件名拼写错误)。 – 2013-03-01 12:08:44