function rules_use_action in Rules 6
Configures an action for using in a rule
Parameters
$name The name of action to create, as specified at hook_action_info():
$params An optional array of properties to add, e.g. #settings:
$label An optional label for the action:
2 calls to rules_use_action()
- rules_test_rules_defaults in rules_test/
rules_test.rules_defaults.inc - Implementation of hook_rules_defaults.
- _rules_admin_install_example_rules in rules_admin/
rules_admin.install
File
- rules/
rules.module, line 660 - Rules engine module
Code
function rules_use_action($name, $params = array(), $label = NULL) {
return _rules_element_set_label(rules_use_element('action', array(
'#name' => $name,
) + $params), $label);
}