function rules_action_user_block

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

Code

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