#1180976 by Spaiz: Added User ID in Contextual Filters for Views.
authorJochen Stals
Sat, 25 Jun 2011 12:24:36 +0000 (14:24 +0200)
committerJochen Stals
Sat, 25 Jun 2011 12:24:36 +0000 (14:24 +0200)
heartbeat.views.inc

index 627409a..960de64 100644 (file)
@@ -55,6 +55,21 @@ function heartbeat_views_data() {
         'handler' => 'views_handler_filter_numeric',
       ),
     ),
+    'uid' => array(
+      'title' => t('User ID'),
+      'help' => t('The user ID'),
+      //'real field' => 'uid',
+      'argument' => array(
+        'handler' => 'views_handler_argument_numeric'
+      ),
+      'field' => array(
+        'handler' => 'views_handler_field_numeric',
+        'click sortable' => TRUE
+      ),
+      'filter' => array(
+        'handler' => 'views_handler_filter_numeric',
+      ),
+    ),
     'nid' => array(
       'title' => t('Node ID'),
       'help' => t('Node ID used in the activity message'),