From a162a577f8289854781b3518045cb857a082917a Mon Sep 17 00:00:00 2001
From: Brian-John Alford <brightsitesconsulting@unknown-d4-9a-20-56-0a-cf.home>
Date: Mon, 14 Mar 2011 22:16:54 +0000
Subject: [PATCH] Issue #[issue number] by [comma-separated usernames]: [Short summary of the change].

---
 modules/user.views.inc |   56 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 55 insertions(+), 1 deletions(-)

diff --git a/modules/user.views.inc b/modules/user.views.inc
index b53c80c..b058386 100644
--- a/modules/user.views.inc
+++ b/modules/user.views.inc
@@ -163,7 +163,7 @@ function user_views_data() {
     ),
   );
 
-    // created field
+  // created field
   $data['users']['created'] = array(
     'title' => t('Created date'), // The item it appears as on the UI,
     'help' => t('The date the user was created.'), // The help that appears on the UI,
@@ -179,6 +179,60 @@ function user_views_data() {
     ),
   );
 
+  $data['users']['created_fulldate'] = array(
+    'title' => t('Created date'),
+    'help' => t('In the form of CCYYMMDD.'),
+    'argument' => array(
+      'field' => 'created',
+      'handler' => 'views_handler_argument_node_created_fulldate',
+    ),
+  );
+
+  $data['users']['created_year_month'] = array(
+    'title' => t('Created year + month'),
+    'help' => t('In the form of YYYYMM.'),
+    'argument' => array(
+      'field' => 'created',
+      'handler' => 'views_handler_argument_node_created_year_month',
+    ),
+  );
+
+  $data['users']['timestamp_year'] = array(
+    'title' => t('Created year'),
+    'help' => t('In the form of YYYY.'),
+    'argument' => array(
+      'field' => 'created',
+      'handler' => 'views_handler_argument_node_created_year',
+    ),
+  );
+
+  $data['users']['created_month'] = array(
+    'title' => t('Created month'),
+    'help' => t('In the form of MM (01 - 12).'),
+    'argument' => array(
+      'field' => 'created',
+      'handler' => 'views_handler_argument_node_created_month',
+    ),
+  );
+
+  $data['users']['created_day'] = array(
+    'title' => t('Created day'),
+    'help' => t('In the form of DD (01 - 31).'),
+    'argument' => array(
+      'field' => 'created',
+      'handler' => 'views_handler_argument_node_created_day',
+    ),
+  );
+
+  $data['users']['created_week'] = array(
+    'title' => t('Created week'),
+    'help' => t('In the form of WW (01 - 53).'),
+    'argument' => array(
+      'field' => 'timestamp',
+      'handler' => 'views_handler_argument_node_created_week',
+    ),
+  );  
+
   // access field
   $data['users']['access'] = array(
     'title' => t('Last access'), // The item it appears as on the UI,
-- 
1.7.2.3

