You are here

function path_menu in Drupal 6

Same name and namespace in other branches
  1. 4 modules/path.module \path_menu()
  2. 5 modules/path/path.module \path_menu()
  3. 7 modules/path/path.module \path_menu()

Implementation of hook_menu().

2 string references to 'path_menu'
system_schema in modules/system/system.install
Implementation of hook_schema().
system_update_6020 in modules/system/system.install
Create the tables for the new menu system.

File

modules/path/path.module, line 37
Enables users to rename URLs.

Code

function path_menu() {
  $items['admin/build/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',
    ),
    'file' => 'path.admin.inc',
  );
  $items['admin/build/path/edit'] = array(
    'title' => 'Edit alias',
    'page callback' => 'path_admin_edit',
    'access arguments' => array(
      'administer url aliases',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'path.admin.inc',
  );
  $items['admin/build/path/delete'] = array(
    'title' => 'Delete alias',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'path_admin_delete_confirm',
    ),
    'access arguments' => array(
      'administer url aliases',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'path.admin.inc',
  );
  $items['admin/build/path/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/build/path/add'] = array(
    'title' => 'Add alias',
    'page callback' => 'path_admin_edit',
    'access arguments' => array(
      'administer url aliases',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'path.admin.inc',
  );
  return $items;
}