function 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

hook_rules_action_info()

Related topics

File

./rules.api.php, line 663

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']);
}