You are here

function advanced_menu_submenu_menu in Advanced Menu 7

Implements hook_menu().

File

submenu/advanced_menu_submenu.module, line 24
Provides advanced menu submenus.

Code

function advanced_menu_submenu_menu() {
  $items['admin/structure/menu/manage/%menu/add-submenu'] = array(
    'title' => 'Add submenu',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'menu_edit_item',
      'add',
      NULL,
      4,
    ),
    'access arguments' => array(
      'use sub menus',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'menu.admin.inc',
    'file path' => drupal_get_path('module', 'menu'),
  );
  $items['advanced-menus/sub-menus/%menu'] = array(
    'title' => 'Sub Menus',
    'access callback' => TRUE,
    'page callback' => '_advanced_menu_submenu_callback',
    'type' => MENU_CALLBACK,
  );
  return $items;
}