You are here

function rules_data_type_node::save in Rules 6

Makes changes to the data permanent. Implement it, if your data type is savable.

Overrides rules_data_type::save

File

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

Class

rules_data_type_node
Defines the node type

Code

function save() {
  $node =& $this
    ->get();

  // Bug fix: Make sure we don't create another revision when we react on the
  // creation of an revision.
  unset($node->revision);
  node_save($node);
  return TRUE;
}