Index: blocks_and_nodes/handbook.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/blocks_and_nodes/handbook.module,v
retrieving revision 1.13
diff -u -p -r1.13 handbook.module
--- blocks_and_nodes/handbook.module	4 Jan 2009 09:34:57 -0000	1.13
+++ blocks_and_nodes/handbook.module	7 Jan 2009 22:23:45 -0000
@@ -23,9 +23,6 @@ function handbook_nodeapi(&$node, $op = 
       case 14205: // Book contributors
         $extra = handbook_book_contributors();
         break;
-      case 263594: // Revision maintainers
-        $extra = handbook_revision_maintainers();
-        break;
       case 23192: // Recent updates
         $extra = handbook_recent_updates();
         break;
@@ -68,8 +65,6 @@ function handbook_most_popular() {
 }
 
 function handbook_maintainers() {
-  $output = '<p>If you are interested in helping maintain/update/correct the documentation on Drupal.org, read up on the <a href="http://drupal.org/node/24572">many ways to get involved</a>.</p>';
-  $output .= '<p>Note: Many of our <a href="/site-maintainers">site maintainers</a> also participate on the documentation team and are not listed here. Due to their broader responsibilities on drupal.org, site maintainers are listed separately.</p>';
   $output .= '<ol>';
   $result = db_query("SELECT DISTINCT(u.uid), u.name
     FROM {users} u INNER JOIN {users_roles} r ON u.uid = r.uid
@@ -82,20 +77,6 @@ function handbook_maintainers() {
   return $output;
 }
 
-function handbook_book_contributors() {
-  $result = db_query("SELECT u.uid, u.name, COUNT(n.nid) AS pages
-  FROM {node} n INNER JOIN {users} u ON n.uid = u.uid
-  WHERE n.type = 'book' AND n.status = 1 AND n.moderate = 0
-  GROUP BY u.name
-  ORDER BY pages DESC");
-  $output .= "<ul>";
-  while ($contributor = db_fetch_object($result)) {
-    $output .= "<li>". theme('username', $contributor) ." (". format_plural($contributor->pages, "1 page", "$contributor->pages pages") .")</li>";
-  }
-  $output .= "</ul>";
-  return $output;
-}
-
 function handbook_site_maintainers() {
   $output = 'If you have been around for a while, and you want to help maintain Drupal.org and are willing to accept the added responsibilities that come with it, sign up on the <a href="http://drupal.org/mailing-lists">Infrastructure team</a> list.';
   $output .= '<ol>';
@@ -110,24 +91,23 @@ function handbook_site_maintainers() {
   return $output;
 }
 
-function handbook_revision_maintainers() {
-  if ($cache = cache_get('node_263594')) {
+function handbook_book_contributors() {
+  if ($cache = cache_get('node_14205')) {
     return $cache->data;
   }
 
-  $result = db_query("SELECT u.uid, u.name, COUNT(nr.vid) AS pages
+  $result = db_query("SELECT DISTINCT u.name, u.uid
     FROM {node} n INNER JOIN {node_revisions} nr ON n.nid = nr.nid INNER JOIN {users} u ON u.uid = n.uid
     WHERE n.type = 'book' AND n.status = 1 AND n.moderate = 0
-    GROUP BY u.name
-    ORDER BY pages DESC");
+    ORDER BY nr.vid DESC");
 
   $list = array();
   while ($contributor = db_fetch_object($result)) {
-    $list[] = theme('username', $contributor) ." (". format_plural($contributor->pages, "1 revision", "$contributor->pages revisions") .")";
+    $list[] = theme('username', $contributor);
   }
 
   $output = theme('item_list', $list);
-  cache_set('node_263594', 'cache', $output, 300);
+  cache_set('node_14205', 'cache', $output, 300);
   return $output;
 }
 
