? delete_cleanup_1.diff
? fix_install_key.diff
? set-modr8-message.patch
? set-modr8-message_1.patch
? set-modr8-message_2.diff
? tab_log_list_1.diff
? tab_log_list_del_cleanup.diff
Index: modr8.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/modr8/modr8.module,v
retrieving revision 1.13
diff -u -p -r1.13 modr8.module
--- modr8.module	20 Jan 2007 15:17:16 -0000	1.13
+++ modr8.module	20 Jan 2007 21:08:23 -0000
@@ -126,7 +126,7 @@ function modr8_nodeapi(&$node, $op, $tea
     case 'view':
       if ($node->moderate & !isset($node->modr8_form_teaser)) {
         $node->content['modr8_message'] = array(
-          '#value' => theme('modr8_message', $teaser, $node->type, $op),
+          '#value' => theme('modr8_message', $teaser, $node->type, 'view'),
           '#weight' => -100,
         );
       }
@@ -172,7 +172,10 @@ function modr8_form_alter($form_id, &$fo
         '#value' => $form['#node']->moderate,
       );
       if ($form['#node']->moderate) {
-        drupal_set_message(t('This %type will be submitted for moderation and will not be accessible to other users until it has been approved.', array('%type' => node_get_types('name', $form['#node']))));
+        $form['modr8_message'] = array(
+          '#value' => theme('modr8_message', FALSE, $form['#node']->type, 'node_form'),
+          '#weight' => -100,
+        );
       }
     }
   }
@@ -269,7 +272,14 @@ function theme_modr8_message($teaser = F
     return ' <div class="marker">'. t('Pending moderation') .'</div>';
   }
   else {
-    drupal_set_message(t("The post has been submitted for moderation and won't be listed until it has been approved."), 'error');
+    switch ($op) {
+      case 'view':
+        drupal_set_message(t("The post has been submitted for moderation and won't be listed until it has been approved."), 'error');
+        break;
+      case 'node_form':
+        drupal_set_message(t('This %type will be submitted for moderation and will not be accessible to other users until it has been approved.', array('%type' => node_get_types('name', $nodetype))));
+        break;
+    }
     return '';
   }
 }
