开发者

Display new module in site

i am new to drupal , i created a new module base on this example

http://api.drupal.org/api/drupal/developer--examples--page_example--page_开发者_运维问答example.module/6/source

i just changed the module name and method to my module new name 'jtpc' and change the jtpc_perm to this

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

now how can i view the module in drupal site ? what is my next step ?


The next step is to implement hook_menu(), or/and hook_form_alter(). Those are the main ways a module have to be visible to users through pages (or forms) it creates, or pages created from other modules to which attach its own content.

Read Menu system, Forms API Quickstart Guide, Forms API Reference, Form generation, How to define content (node) types, How to restrict access to nodes, How to extend existing content types, and Default theme implementations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜