You are here

function r4032login_menu in Redirect 403 to User Login 5

Same name and namespace in other branches
  1. 6 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($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'r4032login',
      'callback' => 'r4032login_redirect',
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'admin/settings/r4032login',
      'title' => t('Redirect 403 to User Login'),
      'description' => t('Toggle display of denied message on login page.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'r4032login_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}