You are here

function rules_action_set_node_title in Rules 6

Sets the content title

Related topics

File

rules/modules/node.rules.inc, line 273
rules integration for the node module

Code

function rules_action_set_node_title($node, $title) {
  $node->title = $title;
  return array(
    'node' => $node,
  );
}