Index: /Users/nate/Sites/drupal/modules/contrib/favorite_nodes/favorite_nodes.module
===================================================================
--- /Users/nate/Sites/drupal/modules/contrib/favorite_nodes/favorite_nodes.module	(revision 172)
+++ /Users/nate/Sites/drupal/modules/contrib/favorite_nodes/favorite_nodes.module	(working copy)
@@ -108,7 +108,7 @@
 function favorite_nodes_view() {
   $uid  = (int)arg(2);
   $type = arg(3);
-  print theme('page', theme('favorite_nodes_view', _favorite_nodes_get($uid, $type)));
+  print theme('page', theme('favorite_nodes_view', favorite_nodes_get($uid, $type)));
 }
 
 function theme_favorite_nodes_view($list = array()) {
@@ -171,9 +171,10 @@
   db_query("DELETE FROM {favorite_nodes} WHERE uid = %d", $uid);
 }
 
-function _favorite_nodes_get($uid, $type = null) {
+function favorite_nodes_get($uid, $type = null) {
   $sql = "SELECT n.nid, n.title, f.uid, f.last FROM {node} n INNER JOIN {favorite_nodes} f USING(nid) WHERE n.type = '%s' AND f.uid = %d ORDER by f.last DESC";
   $result = db_query($sql, $type, $uid);
+  $row = array();
   while ($data = db_fetch_object($result)) {
     $row[$data->nid] = $data;
   }
@@ -181,6 +182,17 @@
   return $row;
 }
 
+function favorite_nodes_get_users($nid) {
+  $sql = "SELECT u.*, f.last FROM {users} u INNER JOIN {favorite_nodes} f USING(uid) WHERE f.nid = %d ORDER by f.last DESC";
+  $result = db_query($sql, $nid);
+  $row = array();
+  while ($data = db_fetch_object($result)) {
+    $row[$data->uid] = $data;
+  }
+
+  return $row;
+}
+
 function _favorite_nodes_check($nid) {
   global $user;
   $sql = "SELECT COUNT(*) FROM {favorite_nodes} WHERE uid = %d AND nid = %d";
