Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.977
diff -u -p -r1.977 node.module
--- modules/node/node.module	17 Sep 2008 20:37:32 -0000	1.977
+++ modules/node/node.module	25 Sep 2008 20:04:10 -0000
@@ -2672,6 +2672,26 @@ function node_action_info() {
         'comment' => array('delete', 'insert', 'update'),
       ),
     ),
+    'node_moderate_action' => array(
+      'type' => 'node',
+      'description' => t('Set moderation flag'),
+      'configurable' => FALSE,
+      'behavior' => array('changes_node_property'),
+      'hooks' => array(
+        'nodeapi' => array('presave'),
+        'comment' => array('insert', 'update'),
+      ),
+    ),
+    'node_unmoderate_action' => array(
+      'type' => 'node',
+      'description' => t('Unset moderation flag'),
+      'configurable' => FALSE,
+      'behavior' => array('changes_node_property'),
+      'hooks' => array(
+        'nodeapi' => array('presave'),
+        'comment' => array('delete', 'insert', 'update'),
+      ),
+    ),
     'node_assign_owner_action' => array(
       'type' => 'node',
       'description' => t('Change the author of a post'),
@@ -2758,6 +2778,24 @@ function node_unpromote_action(&$node, $
 
 /**
  * Implementation of a Drupal action.
+ * Sets the moderate property of a node to 1.
+ */
+function node_moderate_action(&$node, $context = array()) {
+  $node->moderate = 1;
+  watchdog('action', 'Set moderation flag on @type %title.', array('@type' => node_get_types('name', $node), '%title' => $node->title));
+}
+
+/**
+ * Implementation of a Drupal action.
+ * Sets the moderate property of a node to 0.
+ */
+function node_unmoderate_action(&$node, $context = array()) {
+  $node->moderate = 0;
+  watchdog('action', 'Removed moderation flag on @type %title.', array('@type' => node_get_types('name', $node), '%title' => $node->title));
+}
+
+/**
+ * Implementation of a Drupal action.
  * Saves a node.
  */
 function node_save_action($node) {
