You are here

function rules_condition_user_is_blocked in Rules 7.2

Condition: User is blocked.

Related topics

1 string reference to 'rules_condition_user_is_blocked'
rules_user_condition_info in modules/user.rules.inc
Implements hook_rules_condition_info() on behalf of the user module.

File

modules/user.eval.inc, line 38
Contains rules integration for the user module needed during evaluation.

Code

function rules_condition_user_is_blocked($account) {
  return $account->status == 0;
}