You are here

function _password_policy_get_configurable_allowed_paths in Password Policy 7

Gets configurable paths allowed when password change forced.

These are extra paths the administrator chooses to allow when a user is 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_configurable_allowed_paths()
_password_policy_get_allowed_paths in ./password_policy.module
Gets paths allowed when password change forced.

File

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

Code

function _password_policy_get_configurable_allowed_paths() {
  $unprocessed_paths = variable_get('password_policy_force_change_extra_allowed_paths', _password_policy_default_force_change_extra_allowed_paths());
  $paths = array_filter(preg_split("/(\n|\r)/", $unprocessed_paths));
  return $paths;
}