Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.101
diff -w -u -p -r1.101 privatemsg.module
--- privatemsg.module	15 Nov 2008 03:46:55 -0000	1.101
+++ privatemsg.module	24 Nov 2008 15:08:49 -0000
@@ -518,19 +518,13 @@ function privatemsg_new(&$form_state, $a
     '#submit'             => array('pm_send'),
   );
   $form['privatemsg']['cancel'] = array(
-    '#type'               => 'submit',
-    '#value'              => t('Cancel'),
-    '#submit'             => array('pm_cancel'),
+    '#value'              => l(t('Cancel'), 'messages'),
   );
   $form['#validate'][]    = 'pm_send_validate';
 
   return $form;
 }
 
-function pm_cancel($form, &$form_state) {
-  $form_state['redirect'] = 'messages/new';
-}
-
 function pm_send_validate($form, &$form_state) {
 //  drupal_set_message('<pre>'. print_r($form_state['values'], 1) . '</pre>');
   // The actual message that is being sent, we create this during validation and pass to submit to send out.
