function rules_action_node_set_title
An action making use of named parameters.
1 string reference to 'rules_action_node_set_title'
- RulesTestCase::testNamedParameters in tests/
rules.test - Tests the named parameter mode.
File
-
tests/
rules_test.test.inc, line 61
Code
function rules_action_node_set_title($arguments) {
// Make sure the data is unwrapped.
if ($arguments['node'] instanceof EntityMetadataWrapper) {
throw new Exception('Argument has not been correctly unwrapped.');
}
$arguments['node']->title = $arguments['title'];
return $arguments;
}