You are here

function workbench_moderation_node_presave in Workbench Moderation 7.2

Same name and namespace in other branches
  1. 7 workbench_moderation.module \workbench_moderation_node_presave()

Implements hook_node_presave().

File

./workbench_moderation.module, line 279
workbench_moderation.module

Code

function workbench_moderation_node_presave($node) {

  // Enforce a revision for new nodes, even when programmatically created.
  if ($node->is_new) {
    $node->revision = 1;
  }
}