You are here

function rules_action_node_set_author in Rules 6

Modifies a node as configured

Related topics

File

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

Code

function rules_action_node_set_author($node, $author) {
  $node->uid = $author->uid;
  $node->name = $author->name;
  return array(
    'node' => $node,
  );
}