You are here

function domain_301_redirect_menu in Domain 301 Redirect 7

Implements hook_menu().

File

./domain_301_redirect.module, line 22
This module allows you to 301 redirect all domains to one specific domain.

Code

function domain_301_redirect_menu() {
  $items = array();
  $items['admin/config/search/domain_301_redirect'] = array(
    'title' => 'Domain 301 Redirect',
    'description' => 'Manage domain 301 redirection.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'domain_301_redirect_admin_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'domain_301_redirect.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['domain_301_redirect_check'] = array(
    'title' => 'Domain 301 Redirect Check',
    'description' => 'Checks that the main domain listed actually points to the same site.',
    'page callback' => 'domain_301_redirect_check',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}