You are here

function change_pwd_page_menu in Password Separate Form 7

Implements hook_menu().

File

./change_pwd_page.module, line 22
Provides the Password Change form in a separate page.

Code

function change_pwd_page_menu() {
  $items['user/%user/change-password'] = array(
    'title' => 'Change Password',
    'description' => 'Separate Change Password Form',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'change_pwd_page_form',
      1,
    ),
    'access callback' => 'user_edit_access',
    'access arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}