function mpac_menu in Multi-path autocomplete 7
Same name and namespace in other branches
- 8 mpac.module \mpac_menu()
- 6 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' => 'Multi path autocomplete',
'description' => 'Autocomplete callback for Multi path autocomplete',
'page callback' => 'mpac_autocomplete',
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['admin/config/search/mpac'] = array(
'title' => 'Multi path autocomplete',
'description' => 'Administer settings for Multi path autocomplete',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mpac_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer site configuration',
),
'file' => 'mpac.admin.inc',
);
return $items;
}