function tb_megamenu_menu in The Better Mega Menu 7
Implements hook_menu().
File
- ./
tb_megamenu.module, line 9
Code
function tb_megamenu_menu() {
$items['admin/structure/tb-megamenu/request'] = array(
'title' => 'Request',
'page callback' => 'tb_megamenu_request',
'access arguments' => array(
'administer tb_megamenu',
),
'type' => MENU_SUGGESTED_ITEM,
'file' => 'tb_megamenu.ajax.inc',
);
$items['admin/structure/tb-megamenu'] = array(
'title' => 'TB Mega Menu',
'description' => t('TB Mega Menu'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tb_megamenu_admin_settings',
),
'access arguments' => array(
'administer tb_megamenu',
),
'file' => 'tb_megamenu.admin.inc',
);
$items['admin/structure/tb-megamenu/%tb_megamenu_menu_name'] = array(
'title' => 'Config TB Mega Menu',
'description' => t('Config TB Mega Menu'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tb_megamenu_configure_form',
3,
),
'type' => MENU_CALLBACK,
'access callback' => '_tb_megamenu_access',
'access arguments' => array(
3,
),
'file' => 'tb_megamenu.admin.inc',
);
$items['admin/structure/tb-megamenu/%tb_megamenu_menu_name/config'] = array(
'title' => 'Config TB Mega Menu',
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
);
return $items;
}