You are here

function customerror_menu in Customerror 6

Same name and namespace in other branches
  1. 5 customerror.module \customerror_menu()
  2. 7 customerror.module \customerror_menu()

Implements hook_menu().

File

./customerror.module, line 152
Enables custom 404 (not found) and 403 (access denied) pages in Drupal.

Code

function customerror_menu() {
  $items = array();
  $items['admin/settings/customerror'] = array(
    'title' => 'Custom error',
    'description' => 'Administer custom error.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'customerror_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['customerror'] = array(
    'title' => 'customerror',
    'access callback' => TRUE,
    'page callback' => 'customerror_page',
    'type' => MENU_CALLBACK,
  );
  return $items;
}