--- og_audience.module	2010-03-28 03:30:30.000000000 -0700
+++ og_audience.module.new	2010-03-28 03:29:38.000000000 -0700
@@ -77,6 +77,18 @@ function og_audience_settings() {
     '#default_value' => variable_get('og_audience_allow_add', 1),
     '#description' => t('If this is enabled, a user may add to a group a post that initially had no audience. Note that the user may also be able to determine whether the post will remain public.'),
   );
+
+  $group_types = array();
+  $node_types = node_get_types('names');
+  foreach (og_get_types('group') as $group_type) {
+    $group_types[$group_type] = $node_types[$group_type];
+  }
+  $form['og_audience_types'] = array(
+    '#type' => 'checkboxes',
+    '#title' => t('What types of groups to be included in OG Audience?'),
+    '#options' => array_map('check_plain', $group_types),
+    '#default_value' => variable_get('og_audience_types', array()),
+  );
   
   return system_settings_form($form);
 }
@@ -267,9 +279,13 @@ function og_audience_build_form_submit($
 function _og_audience_add_to_options($node, $user) {
   $options = array();
   $groups = array_diff(array_keys($user->og_groups), $node->og_groups);
+
+  $og_audience_types = variable_get('og_audience_types', array());
   if (count($groups)) {
     foreach ($groups as $gid) {
-      $options[$gid] = $user->og_groups[$gid]['title'];
+      if (!empty($og_audience_types[$user->og_groups[$gid]['type']])) {
+        $options[$gid] = $user->og_groups[$gid]['title'];
+      }
     }
   }
   return $options;
