You are here

function mpac_menu in Multi-path autocomplete 6

Same name and namespace in other branches
  1. 8 mpac.module \mpac_menu()
  2. 7 mpac.module \mpac_menu()

Implement hook_menu().

Return value

An array of menu items.

File

./mpac.module, line 13
Find node paths on menu item creation via autocomplete.

Code

function mpac_menu() {
  $items = array();
  $items['mpac/autocomplete'] = array(
    'title' => 'Menu path autocomplete',
    'description' => 'Autocomplete callback for menu path autocomplete',
    'page callback' => 'mpac_autocomplete',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}