You are here

function query_parameters_to_url_menu in Query Parameters To URL 7

Implements hook_menu().

File

./query_parameters_to_url.module, line 27
Query Arguments To URL module.

Code

function query_parameters_to_url_menu() {
  $items = array();
  $items['admin/config/search/query-parameters-to-url'] = array(
    'title' => 'Query Parameters To URL',
    'description' => 'Settings for rewriting query parameters into clean url components.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'query_parameters_to_url_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'query_parameters_to_url.admin.inc',
    'weight' => 0,
  );
  $items['admin/config/search/query-parameters-to-url/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/search/query-parameters-to-url/examples'] = array(
    'title' => 'Example URLs',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'query_parameters_to_url_admin_examples',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'query_parameters_to_url.admin.inc',
    'weight' => 30,
  );
  return $items;
}