public function PasswordPolicyCondition::match in Password Policy 7.2
Checks whether condition matches.
That is, check whether the condition is met for the given account.
Parameters
object $account: User object.
Return value
bool TRUE if the condition matches, FALSE otherwise.
File
- includes/
PasswordPolicyCondition.inc, line 27 - Contains PasswordPolicyCondition.
Class
- PasswordPolicyCondition
- Class PasswordPolicyCondition.
Code
public function match($account) {
$func = $this
->func('condition callback');
if ($func) {
return $func($account, $this);
}
return TRUE;
}