function path_menu in Drupal 7
Same name and namespace in other branches
- 4 modules/path.module \path_menu()
- 5 modules/path/path.module \path_menu()
- 6 modules/path/path.module \path_menu()
Implements hook_menu().
1 string reference to 'path_menu'
- system_schema in modules/
system/ system.install - Implements hook_schema().
File
- modules/
path/ path.module, line 54 - Enables users to rename URLs.
Code
function path_menu() {
$items['admin/config/search/path'] = array(
'title' => 'URL aliases',
'description' => "Change your site's URL paths by aliasing them.",
'page callback' => 'path_admin_overview',
'access arguments' => array(
'administer url aliases',
),
'weight' => -5,
'file' => 'path.admin.inc',
);
$items['admin/config/search/path/edit/%path'] = array(
'title' => 'Edit alias',
'page callback' => 'path_admin_edit',
'page arguments' => array(
5,
),
'access arguments' => array(
'administer url aliases',
),
'file' => 'path.admin.inc',
);
$items['admin/config/search/path/delete/%path'] = array(
'title' => 'Delete alias',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'path_admin_delete_confirm',
5,
),
'access arguments' => array(
'administer url aliases',
),
'file' => 'path.admin.inc',
);
$items['admin/config/search/path/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/search/path/add'] = array(
'title' => 'Add alias',
'page callback' => 'path_admin_edit',
'access arguments' => array(
'administer url aliases',
),
'type' => MENU_LOCAL_ACTION,
'file' => 'path.admin.inc',
);
return $items;
}