Index: birthdays.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/birthdays/birthdays.module,v
retrieving revision 1.32.2.2
diff -u -p -r1.32.2.2 birthdays.module
--- birthdays.module	3 Feb 2009 09:33:27 -0000	1.32.2.2
+++ birthdays.module	22 Jun 2009 20:51:34 -0000
@@ -1072,3 +1072,13 @@ function _birthdays_mail_text($key, $lan
     }
   }
 }
+
+/**
+ * Implementation of hook_views_api().
+ */
+function birthdays_views_api() {
+  return array(
+    'api' => 2,
+  );
+}
+
Index: birthdays.views.inc
===================================================================
RCS file: birthdays.views.inc
diff -N birthdays.views.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ birthdays.views.inc	22 Jun 2009 20:51:34 -0000
@@ -0,0 +1,42 @@
+<?php
+// $Id$
+/**
+ * @file
+ *   Views integration of the module
+ */
+
+/**
+ * Implementation of hook_views_data().
+ */
+function birthdays_views_data() {
+  $data = array();
+  if (module_exists('date_api')) {
+    $data['birthday']['table']['group']  = t('Birthday');
+    $data['birthday']['table']['join'] = array(
+      'node' => array(
+        'left_table' => 'dob',
+        'left_field' => 'uid',
+        'field' => 'uid',
+      ),
+      'users' => array(
+        'left_table' => 'dob',
+        'left_field' => 'uid',
+        'field' => 'uid',
+      ),
+    );
+    $data['birthday']['birthday'] = array(
+      'title' => t('Birthday'), // The item it appears as on the UI,
+      'help' => t('The date when the user was born'), // The help that appears on the UI,
+      'argument' => array(
+        'handler' => 'date_api_argument_handler',
+        'click sortable' => TRUE,
+      ),
+      'filter' => array(
+        'handler' => 'date_api_filter_handler',
+      ),
+    );
+  }
+
+  return $data;
+}
+
