function _password_policy_get_nonconfigurable_allowed_paths in Password Policy 7
Gets non-configurable paths allowed when password change forced.
These paths are the ones users should be able to access at a minimum, regardless of site configuration, when being forced to change their password.
Return value
string[] Array of path patterns in the form expected by the $patterns parameter of drupal_match_path().
1 call to _password_policy_get_nonconfigurable_allowed_paths()
- _password_policy_get_allowed_paths in ./
password_policy.module - Gets paths allowed when password change forced.
File
- ./
password_policy.module, line 968 - Allows enforcing restrictions on user passwords by defining policies.
Code
function _password_policy_get_nonconfigurable_allowed_paths() {
$password_change_paths = _password_policy_get_password_change_paths();
$logout_paths = array(
'user/logout',
);
return array_merge($password_change_paths, $logout_paths);
}