function path_menu
Implements hook_menu().
File
-
modules/
path/ path.module, line 54
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.