? cvs-release-notes.php
Index: views/privatemsg.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/privatemsg/views/privatemsg.views.inc,v
retrieving revision 1.1.4.2
diff -u -p -r1.1.4.2 privatemsg.views.inc
--- views/privatemsg.views.inc	26 Nov 2009 22:50:36 -0000	1.1.4.2
+++ views/privatemsg.views.inc	20 Jan 2011 00:20:45 -0000
@@ -5,9 +5,13 @@
  * Provide views data and handlers for privatemsg.module
  */
 
+/**
+ * Implements hook_views_data().
+ */
 function privatemsg_views_data() {
   $data['users']['privatemsg_link'] = array(
     'group' => t('Privatemsg'),
+    'real field' => 'uid',
     'title' => t('Send message'),
     'field' => array(
       'title' => t('Send Privatemsg link'),
@@ -18,23 +22,3 @@ function privatemsg_views_data() {
   return $data;
 }
 
-
-/**
- * Implementation of hook_views_handlers().
- */
-function privatemsg_views_handlers() {
-  return array(
-    'info' => array(
-      'path' => drupal_get_path('module', 'privatemsg') . '/views',
-    ),
-    'handlers' => array(
-      // field handlers
-      'views_handler_field_privatemsg_link' => array(
-        'parent' => 'views_handler_field',
-      ),
-    ),
-  );
-}
-
-
-
Index: views/views_handler_field_privatemsg_link.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/privatemsg/views/views_handler_field_privatemsg_link.inc,v
retrieving revision 1.1.4.5
diff -u -p -r1.1.4.5 views_handler_field_privatemsg_link.inc
--- views/views_handler_field_privatemsg_link.inc	12 Aug 2010 15:05:24 -0000	1.1.4.5
+++ views/views_handler_field_privatemsg_link.inc	20 Jan 2011 00:20:46 -0000
@@ -68,9 +68,10 @@ class views_handler_field_privatemsg_lin
       '#title' => t('Custom destination'),
       '#default_value' => $this->options['custom_destination'],
       '#description' => t('If non-empty, users will be forwared to the given url. You can use replacement tokens to insert any existing field output.'),
-      '#process' => array('views_process_dependency'),
-      '#dependency' => array(
-        'edit-options-return' => array(1)
+      '#states' => array(
+        'visible' => array(
+          "input[name='options[return]']" => array('checked' => TRUE),
+        ),
       ),
     );
 
@@ -126,11 +127,8 @@ class views_handler_field_privatemsg_lin
    * Renders our field, displays a link if the user is allowed to.
    */
   function render($values) {
-    if (isset($values->uid)) {
-      $uid = $values->uid;
-    }
-    elseif (isset($values->users_uid)) {
-      $uid = $values->users_uid;
+    if (isset($values->{$this->aliases['uid']})) {
+      $uid = $values->{$this->aliases['uid']};
     }
     else {
       return '';
