? .cvsignore
? privatemsg_forward
? privatemsg_forward-2.tar.gz
? privatemsg_validate_fix.patch
Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.70.2.30.2.91.2.68
diff -u -p -r1.70.2.30.2.91.2.68 privatemsg.module
--- privatemsg.module	14 Sep 2009 15:53:20 -0000	1.70.2.30.2.91.2.68
+++ privatemsg.module	15 Sep 2009 23:44:40 -0000
@@ -763,12 +763,14 @@ function privatemsg_new(&$form_state, $r
     '#type'               => 'submit',
     '#value'              => t('Preview message'),
     '#submit'             => array('pm_preview'),
+    '#validate'           => array('pm_send_validate'),
     '#weight'             => 10,
   );
   $form['privatemsg']['submit'] = array(
     '#type'               => 'submit',
     '#value'              => t('Send message'),
     '#submit'             => array('pm_send'),
+    '#validate'           => array('pm_send_validate'),
     '#weight'             => 15,
   );
   $url = 'messages';
@@ -785,7 +787,6 @@ function privatemsg_new(&$form_state, $r
     '#value'              => l($title, $url, array('attributes' => array('id' => 'edit-cancel'))),
     '#weight'             => 20,
   );
-  $form['#validate'][]    = 'pm_send_validate';
 
   if (!is_null($thread_id)) {
     $form['privatemsg']['thread_id'] = array(
