You are here

function noreqnewpass_menu in No Request New Password 5

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

Implementation of hook_menu().

File

./noreqnewpass.module, line 6

Code

function noreqnewpass_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/noreqnewpass',
      'title' => t('No Request New Password'),
      'description' => t('Manage password preferences'),
      'access' => user_access('administer noreqnewpass'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'noreqnewpass_admin_form',
    );
  }
  if (variable_get('noreqnewpass_disabled', true)) {
    $items[] = array(
      'path' => 'user/password',
      //'callback' => 'drupal_not_found',
      'access' => FALSE,
    );
  }
  return $items;
}