Index: profilesearch.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/profilesearch/profilesearch.module,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 profilesearch.module
--- profilesearch.module	20 Apr 2009 20:52:09 -0000	1.2.2.2
+++ profilesearch.module	10 Sep 2009 21:07:15 -0000
@@ -107,3 +107,13 @@ function profilesearch_uninstall() { db_query('DELETE FROM {search_index} WHERE type = "users"'); db_query('DELETE FROM {search_node_links} WHERE type = "users"');
 }
+
+/**
+ * Implementation of hook_views_api().
+ */
+function profilesearch_views_api() {
+  return array(
+    'api' => 2,
+  );
+}
+
Index: profilesearch.views.inc
===================================================================
RCS file: profilesearch.views.inc
diff -N profilesearch.views.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ profilesearch.views.inc	10 Sep 2009 21:07:15 -0000
@@ -0,0 +1,19 @@
+<?php
+// $Id$
+/**
+ * @file
+ *   Views Include File for ProfileSearch
+ */
+
+/**
+ * Implementation of hook_views_data_alter().
+ */
+function profilesearch_views_data_alter(&$data) {
+  // Add user join
+  // For other base tables, explain how we join
+  $data['search_index']['table']['join']['users'] = array(
+    'left_field' => 'uid',
+    'field' => 'sid'
+  );
+}
+
