You are here

function pathauto_menu in Pathauto 5.2

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

Implementation of hook_menu().

File

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

Code

function pathauto_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/pathauto',
      'title' => t('Pathauto'),
      'description' => t('Configure how pathauto generates clean URLs for your content.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'pathauto_admin_settings',
      ),
      'access' => user_access('administer pathauto'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'admin/build/path/delete_bulk',
      'title' => t('Delete aliases'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'pathauto_admin_delete',
      ),
      'access' => user_access('administer url aliases'),
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}