You are here

function user_rules_action_info_alter in Rules 6

Implementation of hook_rules_action_info_alter().

Adapts the action info of some core actions to better fit for being used with rules.

Related topics

File

rules/modules/user.rules.inc, line 293
rules integration for the user module

Code

function user_rules_action_info_alter(&$actions) {

  // This action doesn't take the user argument.
  $actions['rules_core_user_block_ip_action']['arguments'] = array(
    'object' => array(
      'type' => 'value',
      'default value' => NULL,
    ),
  );

  // This action can be configured to other users than the current one, so improve the label.
  $actions['rules_core_user_block_user_action']['label'] = t('Block a user');
}