You are here

function pathauto_menu in Pathauto 6.2

Same name and namespace in other branches
  1. 5.2 pathauto.module \pathauto_menu()
  2. 5 pathauto.module \pathauto_menu()
  3. 6 pathauto.module \pathauto_menu()
  4. 7 pathauto.module \pathauto_menu()

Implements hook_menu().

File

./pathauto.module, line 61
Main file for the Pathauto module, which automatically generates aliases for content.

Code

function pathauto_menu() {
  $items['admin/build/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/build/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/build/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/build/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;
}