function hook_rules_action_info_alter in Rules 7.2
Same name and namespace in other branches
- 6 rules/rules.api.php \hook_rules_action_info_alter()
Alter rules compatible actions.
The implementation should be placed into the file MODULENAME.rules.inc, which gets automatically included when the hook is invoked.
Parameters
$actions: The items of all modules as returned from hook_rules_action_info().
See also
Related topics
File
- ./
rules.api.php, line 663 - Documentation for hooks provided by the Rules API.
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']);
}