You are here

function rules_action_user_block in Rules 7.2

Action: Block a user.

Related topics

1 string reference to 'rules_action_user_block'
rules_user_action_info in modules/user.rules.inc
Implements hook_rules_action_info() on behalf of the user module.

File

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

Code

function rules_action_user_block($account) {
  $account->status = 0;
  drupal_session_destroy_uid($account->uid);
}