You are here

8 August 2011

This menus page shows child menus under that menu item.

Source code viewer
  1. function hook_menu() // don't forget to change hook to your module name
  2. {
  3. $items = array();
  4.  
  5. $items['admin/custom-content'] = array(
  6. 'title' => 'Custom content', // menu name
  7. 'description' => 'Custom made configuration pages.', // menu description
  8. 'position' => 'right',
  9. 'page callback' => 'system_admin_menu_block_page',
  10. 'access arguments' => array('access administration pages'),
  11. 'file' => 'system.admin.inc',
  12. 'file path' => 'modules/system',
  13. );
  14.  
  15. return $items;
  16. }
Programming Language: PHP