You are here

function bakery_menu_alter in Bakery Single Sign-On System 7.2

Same name and namespace in other branches
  1. 6 bakery.module \bakery_menu_alter()

Implements hook_menu_alter().

File

./bakery.module, line 88
Module file for the Bakery.

Code

function bakery_menu_alter(&$items) {
  if (!variable_get('bakery_is_master', 0)) {

    // Redirect password resets to the master site because the password needs
    // to be reset there. No need to maintain destination since the reset/login
    // process looses it anyway.
    $items['user/password']['page callback'] = 'drupal_goto';
    $items['user/password']['page arguments'] = array(
      variable_get('bakery_master', 'http://drupal.org/') . 'user/password',
    );
  }
}