function _password_policy_load_policy_excluded_authentication_modules in Password Policy 7
Loads excluded authentication modules into policy.
Parameters
array $policy: Policy array.
2 calls to _password_policy_load_policy_excluded_authentication_modules()
- _password_policy_load_active_policy in ./
password_policy.module - Loads the first enabled policy that matches the specified roles.
- _password_policy_load_policy_from_db in ./
password_policy.module - Loads the policy that meets the specified conditions from the database.
File
- ./
password_policy.authmap.inc, line 36 - Functions to support excluding authentication modules from policies.
Code
function _password_policy_load_policy_excluded_authentication_modules(array &$policy) {
$excluded_authentication_modules = db_select('password_policy_excluded_authentication_modules', 'p', array(
'target' => 'slave',
))
->fields('p', array(
'module',
))
->condition('pid', $policy['pid'])
->execute()
->fetchCol();
$policy['excluded_authentication_modules'] = $excluded_authentication_modules;
}