You are here

function noreqnewpass_menu_alter in No Request New Password 6

Same name and namespace in other branches
  1. 7.2 noreqnewpass.module \noreqnewpass_menu_alter()
  2. 7 noreqnewpass.module \noreqnewpass_menu_alter()

Implementation of hook_menu_alter().

File

./noreqnewpass.module, line 23

Code

function noreqnewpass_menu_alter(&$callback) {
  if (variable_get('noreqnewpass_disabled', true)) {
    $callback['user/password'] = array(
      'access arguments' => array(
        FALSE,
      ),
    );
  }
}