You are here

function advanced_help_menu in Advanced Help 5

Same name and namespace in other branches
  1. 6 advanced_help.module \advanced_help_menu()
  2. 7 advanced_help.module \advanced_help_menu()

Implementation of hook_menu().

File

./advanced_help.module, line 38
advanced_help.module

Code

function advanced_help_menu() {

  // View help topic index.
  $items[] = array(
    'path' => 'admin/advanced_help',
    'title' => module_exists('help') ? 'Advanced help' : 'Help',
    'callback' => 'advanced_help_index_page',
    'access' => user_access('view advanced help index'),
    'weight' => 9,
  );
  $items[] = array(
    'path' => 'advanced_help/search',
    'callback' => 'advanced_help_search_view',
    'access' => user_access('view advanced help index'),
    'type' => MENU_CALLBACK,
  );

  /* Don't think this is required?
    $items[] = array(
      'path' => 'advanced_help/search/advanced_help',
      'title' => 'Search help',
      'access' => user_access('view advanced help index'),
      'type' => MENU_NORMAL_ITEM,
    );
    */

  // View help topic.
  $items[] = array(
    'path' => 'help',
    'callback' => 'advanced_help_topic_page',
    'access' => user_access('view advanced help topic'),
    'type' => MENU_CALLBACK,
  );
  return $items;
}