? .cvsignore
? send_link_class.patch
Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.132
diff -u -p -r1.132 privatemsg.module
--- privatemsg.module	6 Jun 2010 15:52:50 -0000	1.132
+++ privatemsg.module	20 Jun 2010 14:29:24 -0000
@@ -1001,7 +1001,7 @@ function privatemsg_user($op, &$edit, &$
       if (($url = privatemsg_get_link(array($account))) && variable_get('privatemsg_display_profile_links', 1)) {
         $account->content['privatemsg_send_new_message'] = array(
           '#type'   => 'markup',
-          '#value'  => l(t('Send this user a message'), $url, array('query' => drupal_get_destination(), 'attributes' => array('title' => t('Send this user a message')))),
+          '#value'  => l(t('Send this user a message'), $url, array('query' => drupal_get_destination(), 'title' => t('Send this user a message'), 'attributes' => array('class' => 'privatemsg-send-link privatemsg-send-link-profile'))),
           '#weight' => 10,
         );
       }
@@ -1921,8 +1921,9 @@ function privatemsg_link($type, $object,
   if ($type == 'node' && in_array($object->type, $types) && !empty($url) && ($teaser == FALSE || variable_get('privatemsg_display_on_teaser', 1))) {
     $links['privatemsg_link'] = array(
       'title' => t('Send author a message'),
-      'href' => $url . '/' . t('Message regarding @node', array( '@node' => $object->title)),
+      'href' => $url . '/' . t('Message regarding @node', array('@node' => $object->title)),
       'query' => drupal_get_destination(),
+      'attributes' => array('class' => 'privatemsg-send-link privatemsg-send-link-node'),
     );
   }
   if ($type == 'comment' && in_array($nodes[$object->nid]->type, $types) && !empty($url) && variable_get('privatemsg_display_on_comments', 0)) {
@@ -1930,6 +1931,7 @@ function privatemsg_link($type, $object,
       'title' => t('Send private message'),
       'href' => $url . '/' . t('Message regarding @comment', array( '@comment' => $object->subject)),
       'query' => drupal_get_destination(),
+      'attributes' => array('class' => 'privatemsg-send-link privatemsg-send-link-comment'),
     );
   }
   return $links;
