You are here

function r4032login_menu in Redirect 403 to User Login 6

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

Implementation of hook_menu().

File

./r4032login.module, line 11
Redirect denied pages to the user login form.

Code

function r4032login_menu() {
  $items = array();
  $items['r4032login'] = array(
    'page callback' => 'r4032login_redirect',
    'access callback' => 'r4032login_access',
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/r4032login'] = array(
    'title' => 'Redirect 403 to User Login',
    'description' => 'Toggle display of denied message on login page.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'r4032login_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}