You are here

function simple_pass_reset_menu_alter in Simple Password Reset 7

Implements hook_menu_alter().

File

./simple_pass_reset.module, line 6

Code

function simple_pass_reset_menu_alter(&$items) {

  // Drupal's default behavior is to show the user a log-in form before
  // their user profile.  We replace this item to skip the uneccesary step.
  $items['user/reset/%/%/%'] = array(
    'title' => 'Account settings',
    'access callback' => 'simple_pass_reset_pass_reset_access',
    'access arguments' => array(
      2,
      3,
      4,
    ),
    'page callback' => 'simple_pass_reset_pass_reset_page',
    'page arguments' => array(
      2,
      3,
      4,
    ),
    'type' => MENU_CALLBACK,
  );
}