Index: modules/user/views_plugin_argument_validate_user.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/user/views_plugin_argument_validate_user.inc,v
retrieving revision 1.2
diff -u -p -r1.2 views_plugin_argument_validate_user.inc
--- modules/user/views_plugin_argument_validate_user.inc	17 Feb 2009 23:32:33 -0000	1.2
+++ modules/user/views_plugin_argument_validate_user.inc	29 Jun 2009 15:38:08 -0000
@@ -16,6 +16,9 @@ class views_plugin_argument_validate_use
       $this->argument->options['validate_user_argument_type'] = 'uid';
       $this->argument->options['validate_user_roles'] = array();
     }
+    if (!isset($this->argument->options['validate_user_argument_returntype'])) {
+      $this->argument->options['validate_user_argument_type'] = 'uid';
+    }
 
     $form['validate_user_argument_type'] = array(
       '#type' => 'radios',
@@ -32,6 +35,20 @@ class views_plugin_argument_validate_use
       '#suffix' => '</div>',
     );
 
+    $form['validate_user_argument_returntype'] = array(
+      '#type' => 'radios',
+      '#title' => t('Type of user argument to return'),
+      '#options' => array(
+        'uid' => t('Return numeric UIDs'),
+        'name' => t('Return string usernames'),
+      ),
+      '#default_value' => $this->argument->options['validate_user_argument_returntype'],
+      '#process' => array('expand_radios', 'views_process_dependency'),
+      '#dependency' => array('edit-options-validate-type' => array($this->id)),
+      '#prefix' => '<div id="edit-options-validate-user-argument-returntype-wrapper">',
+      '#suffix' => '</div>',  
+    );
+
     $form['validate_user_restrict_roles'] = array(
       '#type' => 'checkbox',
       '#title' => t('Restrict user based on role'),
@@ -99,6 +116,9 @@ class views_plugin_argument_validate_use
     }
 
     $this->argument->argument = $account->uid;
+    if ($this->argument->options['validate_user_argument_returntype'] == 'name') {
+      $this->argument->argument = $account->name;
+    }
     $this->argument->validated_title = check_plain($account->name);
     return TRUE;
   }
