From f6c16a93f7bbf05f969121abdac871f657e68647 Mon Sep 17 00:00:00 2001
From: James Sansbury <james.sansbury@lullabot.com>
Date: Wed, 8 Feb 2012 12:41:49 -0500
Subject: [PATCH] Issue #1331614 by fangel, q0rban: Add uid as argument, field
 and filter in Views.

---
 includes/flag.views.inc |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/includes/flag.views.inc b/includes/flag.views.inc
index 3dd6df0..07860b7 100644
--- a/includes/flag.views.inc
+++ b/includes/flag.views.inc
@@ -73,13 +73,24 @@ function flag_views_data() {
   $data['flag_counts']['table']['group'] = t('Flags');
 
   $data['flag_content']['uid'] = array(
-    'title' => t('User'),
-    'help' => t('The user that flagged an item.'),
+    'title' => t('User uid'),
+    'help' => t('The user that flagged an item. If you need more fields than the uid add the "Flags: User" relationship.'),
     'relationship' => array(
       'base' => 'users',
+      'title' => t('User'),
+      'help' => t('Relate an item to the user that flagged it.'),
       'handler' => 'views_handler_relationship',
       'label' => t('Flag user'),
     ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_user_name',
+    ),
+    'argument' => array(
+      'handler' => 'views_handler_argument_numeric',
+    ),
+    'field' => array(
+      'handler' => 'views_handler_field_user',
+    ),
   );
 
   $data['flag_content']['timestamp'] = array(
-- 
1.7.7

