Index: signup_views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/signup/signup_views.inc,v
retrieving revision 1.3
diff -u -r1.3 signup_views.inc
--- signup_views.inc	21 Jun 2007 15:18:29 -0000	1.3
+++ signup_views.inc	5 Oct 2007 15:21:05 -0000
@@ -3,7 +3,7 @@
 
 /**
  * @file
- * Provides support for Views integration.  
+ * Provides support for Views integration.
  *
  * Currently, this only exposes signup-related data, but does not
  * define any default views.
@@ -25,7 +25,7 @@
         'field' => 'nid'
       ),
     ),
-    'fields' => array(     
+    'fields' => array(
       'uid' => array(
         'name' => t('Signup: User: Name'),
         'handler' => 'views_handler_field_uid',
@@ -37,7 +37,7 @@
         'handler' => 'views_handler_field_signup_email',
         'sortable' => true,
         'field' => 'uid',
-        'addlfields' => array('anon_mail'), 
+        'addlfields' => array('anon_mail'),
         'help' => t('Email address of a user (authenticated or anonymous) who signed up.') .' <strong>'. t('WARNING: only expose this data in a view that is restricted to users whom you can trust with such sensitive information.') .'</strong>',
       ),
       'signup_time' => array(
@@ -82,6 +82,14 @@
         'handler' => 'views_handler_filter_signup_uid',
         'help' => t('Filter on if a user who signed up is anonymous, or an authenticated user on the site.'),
       ),
+      'currentuid' => array(
+        'field' => 'uid',
+        'name' => t('Signup: User: Current User'),
+        'operator' => 'views_handler_operator_eqneq',
+        'list' => 'views_handler_filter_usercurrent',
+        'list-type' => 'select',
+        'help' => t('This allows you to filter by whether or not the node was signed up by the logged in user of the view.'),
+      ),
     )
   );
   $tables['signup'] = array(
@@ -95,7 +103,7 @@
         'field' => 'nid'
       ),
     ),
-    'fields' => array(     
+    'fields' => array(
       'status' => array(
         'name' => t('Signup: Node: Open/Closed'),
         'sortable' => true,
@@ -232,7 +240,7 @@
     'help' => t('Filter signups by signed up user.'),
     'option' => array(
       '#type' => 'select',
-      '#options' => array(1 => t('Signed up'), 0 => t('Not signed up')), 
+      '#options' => array(1 => t('Signed up'), 0 => t('Not signed up')),
     ),
   );
   return $arguments;
@@ -240,7 +248,7 @@
 
 /**
  * An argument handler for signup_uid
- * 
+ *
  */
 function views_handler_arg_signup_uid($op, &$query, $argtype, $arg = '') {
   switch ($op) {
