在站点中显示新模块

时间:2010-08-03 20:45:31

标签: drupal-6 drupal-modules

我是drupal的新手, 我在这个例子上创建了一个新模块

http://api.drupal.org/api/drupal/developer--examples--page_example--page_example.module/6/source

我刚刚将模块名称和方法更改为我的模块新名称'jtpc' 并将jtpc_perm更改为此

function jtpc_perm() {
  return array(
   'access jtpc content' ,
 );
}

现在我如何查看drupal站点中的模块? 我的下一步是什么?

1 个答案:

答案 0 :(得分:0)

下一步是实施hook_menu(),或/和hook_form_alter()。这些是用户通过其创建的页面(或表单)可以看到模块的主要方式,或者是从附加其内容的其他模块创建的页面。

阅读Menu systemForms API Quickstart GuideForms API ReferenceForm generationHow to define content (node) typesHow to restrict access to nodesHow to extend existing content types和{{3 }}