function password_policy_init in Password Policy 7.2
Same name and namespace in other branches
- 6 password_policy.module \password_policy_init()
- 7 password_policy.module \password_policy_init()
Implements hook_init().
File
- ./
password_policy.module, line 211 - Enforces password policies.
Code
function password_policy_init() {
global $user;
$policies = PasswordPolicy::matchedPolicies($user);
foreach ($policies as $policy) {
$policy
->init($user);
}
}