? .cvsignore
? send_link_class.patch
? send_link_class_profile_item.patch
Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.133
diff -u -p -r1.133 privatemsg.module
--- privatemsg.module	6 Jul 2010 18:03:07 -0000	1.133
+++ privatemsg.module	8 Jul 2010 07:17:30 -0000
@@ -1118,9 +1118,11 @@ function privatemsg_user($op, &$edit, &$
     case 'view':
       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')))),
+          '#type'   => 'user_profile_item',
+          '#title'  => t('Private messages'),
+          '#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,
+          '#attributes' => array('class' => 'privatemsg-profile-link'),
         );
       }
       break;
@@ -2048,8 +2050,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)) {
@@ -2057,6 +2060,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;
