You are here

function menu_select_menu in Menu Select 7

Implements hook_menu().

File

./menu_select.module, line 12
Expands the node menu select field functionality by adding filters and an expandable hierarchy.

Code

function menu_select_menu() {
  $items['admin/config/content/menu-select'] = array(
    'title' => 'Menu Select',
    'description' => 'Administer and configure settings for Menu Select such as enabling Search or modifying the auto-expand cut off point.',
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'menu_select_config_form',
    ),
  );
  $items['menu-select/autocomplete/%'] = array(
    'title' => 'Autocomplete for menu select',
    'page callback' => '_menu_select_autocomplete',
    'page arguments' => array(
      2,
    ),
    'access callback' => '_menu_select_access_autocomplete',
    'access arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}