function pathauto_menu in Pathauto 7
Same name and namespace in other branches
- 5.2 pathauto.module \pathauto_menu()
- 5 pathauto.module \pathauto_menu()
- 6.2 pathauto.module \pathauto_menu()
- 6 pathauto.module \pathauto_menu()
Implements hook_menu().
File
- ./
pathauto.module, line 79 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function pathauto_menu() {
$items['admin/config/search/path/patterns'] = array(
'title' => 'Patterns',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pathauto_patterns_form',
),
'access arguments' => array(
'administer pathauto',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'file' => 'pathauto.admin.inc',
);
$items['admin/config/search/path/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pathauto_settings_form',
),
'access arguments' => array(
'administer pathauto',
),
'type' => MENU_LOCAL_TASK,
'weight' => 20,
'file' => 'pathauto.admin.inc',
);
$items['admin/config/search/path/update_bulk'] = array(
'title' => 'Bulk generate',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pathauto_bulk_update_form',
),
'access arguments' => array(
'administer url aliases',
),
'type' => MENU_LOCAL_TASK,
'weight' => 30,
'file' => 'pathauto.admin.inc',
);
$items['admin/config/search/path/delete_bulk'] = array(
'title' => 'Delete aliases',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pathauto_admin_delete',
),
'access arguments' => array(
'administer url aliases',
),
'type' => MENU_LOCAL_TASK,
'weight' => 40,
'file' => 'pathauto.admin.inc',
);
return $items;
}