function rules_core_action_execute in Rules 6
Action implementation: Execute a core action
Related topics
1 string reference to 'rules_core_action_execute'
- rules_core_action_transform_info in rules/
modules/ rules.rules.inc - Transforms action info written for core to the rules format. If the action should not be used by the rules modules, an empty array is returned.
File
- rules/
modules/ rules.rules.inc, line 351 - rules integration for the rules module
Code
function rules_core_action_execute($object, $settings, $element, &$state) {
$info = rules_get_element_info($element);
$info['action_name']($object, $settings);
if (isset($settings['auto_save']) && $settings['auto_save']) {
$keys = array_keys($info['arguments']);
$argument_name = array_shift($keys);
return array(
$argument_name => $object,
);
}
}