i have D7 and i have enabled example module. i have enabled js example there, but dont know how to see its function. i can view its code and everything, but dont know how to see its working.

Comments

enzipher’s picture

Hey,

If you take a look in the menu_example.module you will see the following which I believe explains it.

  // Menu items are defined by placing them in an $items array. The array key
  // (in this case 'menu_example') is the path that defines the menu router
  // entry, so the page will be accessible from the URL
  // example.com/menu_example.
  $items['menu_example'] = array(

That is, "menu_example" is the path. It could just as well be $items['my/own/page'] which would give you a page at example.com/my/own/page

Hope that helps.

Cheers,

--

hook_world() is broken.