You are here

function r4032login_menu in Redirect 403 to User Login 7

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

Implements 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_callback',
    'type' => MENU_CALLBACK,
    'title' => 'Access denied',
    'description' => 'You are not authorized to access this page.',
  );
  return $items;
}