? delete_cleanup_1.diff
? fix_install_key.diff
? set-modr8-message.patch
? set-modr8-message_1.patch
? 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 15:42:13 -0000
@@ -172,7 +172,7 @@ 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']))));
+        theme('modr8_message', FALSE, node_get_types('name', $form['#node']), 'node_form');
       }
     }
   }
@@ -269,7 +269,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' => $nodetype)));
+        break;
+    }
     return '';
   }
 }
