You are here

function _password_policy_is_path_allowed_when_password_change_forced in Password Policy 7

Same name and namespace in other branches
  1. 6 password_policy.module \_password_policy_is_path_allowed_when_password_change_forced()

Determines whether access to path allowed when user password change forced.

Return value

bool TRUE if the path is allowed, FALSE otherwise.

1 call to _password_policy_is_path_allowed_when_password_change_forced()
password_policy_init in ./password_policy.module
Implements hook_init().

File

./password_policy.module, line 909
Allows enforcing restrictions on user passwords by defining policies.

Code

function _password_policy_is_path_allowed_when_password_change_forced() {
  $allowed_paths = _password_policy_get_allowed_paths();
  $patterns = implode("\n", $allowed_paths);
  return drupal_match_path(current_path(), $patterns);
}