Drupal 7自定义模块无法启用

时间:2011-12-19 03:21:41

标签: drupal drupal-7 drupal-modules

我正在尝试创建一个自定义模块(作为内容/节点类型),但它出现故障。

创建所需的.module和.info文件后,我进入Adminstrator / modules并启用该模块。启用此模块后,我看到的是管理员视图展开自己screenshot of the administrator page that renders itself once the custom module is enabled

将此与执行管理任务时呈现自身的常规管理员页面进行比较: SCreenshot of administrative page when one of the custom modules has not been enabled, that is the defacto screen 它应该出现在新的内容类型按钮中,但它没有,当我回头看看模块菜单时,即使我启用了节点并保存了配置,也没有启用该节点。 也没有错误报告,我正在使用正式的Drupal文档将模块创建为node_example ...可以通过以下链接获取相同的代码:

http://drupalcontrib.org/api/drupal/contributions--examples--node_example--node_example.module/7

有人对这里出了什么问题有任何意见吗?最重要的是,这似乎是在将模块创建为节点类型的官方文档中出现的错误!

0 个答案:

没有答案
相关问题