Index: groupsorg.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/groupsorg/groupsorg.module,v
retrieving revision 1.2
diff -u -p -r1.2 groupsorg.module
--- groupsorg.module	16 Feb 2011 23:19:23 -0000	1.2
+++ groupsorg.module	16 Feb 2011 23:52:51 -0000
@@ -15,12 +15,20 @@ function groupsorg_preprocess_node($vari
 function groupsorg_user($op, &$edit, &$account, $category = NULL) {
   if ($op == 'view') {
     // Manager of groups.
-    $groups = array();
-    if (!empty($groups)) {
+    if (!empty($account->og_groups)) {
+      // Collect a count of groups user is an admin of. @todo this could instead
+      // be a list of those groups, but OG doesn't show group names on a user's
+      // profile unless they are an admin or are the account being seen.
+      $count = 0;
+      foreach ($account->og_groups as $group) {
+        if ($group['is_admin']) {
+          $count++;
+        }
+      }
       $account->content['summary']['group_manager'] = array(
-        '#type' => 'item',
-        '#title' => t('Manager of groups'),
-        '#value' => 'sdfsdfd',
+        '#type' => 'user_profile_item',
+        '#title' => t('Organizer of groups'),
+        '#value' => $count,
       );
     }
     // Count of submitted events.
@@ -45,7 +53,7 @@ function groupsorg_user($op, &$edit, &$a
       );
     }
     // Count of votes by this user.
-    $result = db_fetch_array(db_query(db_rewrite_sql("SELECT COUNT(1) AS count FROM {votingapi_vote} v WHERE v.uid = %d"), $account->uid));
+    $result = db_fetch_array(db_query("SELECT COUNT(1) AS count FROM {votingapi_vote} v WHERE v.uid = %d", $account->uid));
     if (!empty($result) && (int) $result['count'] > 0) {
       $account->content['summary']['voted_count'] = array(
         '#type' => 'user_profile_item',
