You are here

function _password_policy_get_password_change_paths in Password Policy 6

Same name and namespace in other branches
  1. 7 password_policy.module \_password_policy_get_password_change_paths()

Gets paths that allow user to change their password.

2 calls to _password_policy_get_password_change_paths()
_password_policy_go_to_password_change_page in ./password_policy.module
Redirects user to password change page.
_password_policy_is_path_allowed_when_password_change_forced in ./password_policy.module
Determines whether access to path allowed when user password change forced.

File

./password_policy.module, line 112
The password policy module allows you to enforce a specific level of password complexity for the user passwords on the system.

Code

function _password_policy_get_password_change_paths() {
  global $user;
  $custom_path = _password_policy_get_custom_password_change_path();
  if (isset($custom_path)) {
    return array(
      $custom_path,
    );
  }
  else {
    return array(
      "user/{$user->uid}/edit/account",
      "user/{$user->uid}/edit",
    );
  }
}