views:

11

answers:

1

hey there 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 ?

A: 

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.

kiamlaluno
thanks , i need to view the block ,in order to link to my custom page ?just want to understand what i am doing
shay
do i need to see my module under administrator->Site building->menues->navigation ?
shay
A menu callback shows a page, not a block. To show a block, you need to implement `hook_block()`, which is the other way a module has to show something in a page; a block still needs to be enabled by an administrator. Not all the menu callback can be shown in the navigation menu; the menu callback shown at `/admin/build/modules` (handled by the module system.module) is shown in the navigation menu, but `/devel/php` (handled by devel.module) is not shown in the navigation meanu.
kiamlaluno
ok i was able to run the examplei want a custom page , means , my own php page i creates earlier i tried to include my page but this replace the complete web page
shay