function workbench_moderation_node_presave in Workbench Moderation 7.2
Same name and namespace in other branches
- 7 workbench_moderation.module \workbench_moderation_node_presave()
Implements hook_node_presave().
File
Code
function workbench_moderation_node_presave($node) {
// Enforce a revision for new nodes, even when programmatically created.
if ($node->is_new) {
$node->revision = 1;
}
}