You are here

function hook_rules_action_info_alter in Rules 6

Same name and namespace in other branches
  1. 7.2 rules.api.php \hook_rules_action_info_alter()

Alter rules compatible actions.

The implementation should be placed into the file MODULENAME.rules.inc.

Parameters

$actions: The items of all modules as returned from hook_rules_action_info().

See also

hook_rules_action_info().

Related topics

2 functions implement hook_rules_action_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

node_rules_action_info_alter in rules/modules/node.rules.inc
Implementation of hook_rules_action_info_alter().
user_rules_action_info_alter in rules/modules/user.rules.inc
Implementation of hook_rules_action_info_alter().

File

rules/rules.api.php, line 562
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_rules_action_info_alter(&$actions) {

  // The rules action is more powerful, so hide the core action
  unset($actions['rules_core_node_assign_owner_action']);

  // We prefer handling saving by rules - not by the user.
  unset($actions['rules_core_node_save_action']);
}