Index: og_forum.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/og_forum/Attic/og_forum.module,v
retrieving revision 1.11.2.11.2.20
diff -u -p -r1.11.2.11.2.20 og_forum.module
--- og_forum.module	14 Oct 2008 10:20:13 -0000	1.11.2.11.2.20
+++ og_forum.module	2 Dec 2008 17:44:47 -0000
@@ -1205,6 +1205,16 @@ function og_forum_og_create_links($group
   }
   return $links;
 } // function og_forum_og_create_links()
+
+/**
+ * Implementation of hook_og_link_alter().
+ */
+function og_forum_og_link_alter(&$links, $node) {
+  // Users should post to 'Group Forums' and not to the group page.
+  if (isset($links['create_forum']))
+    unset($links['create_forum']);
+}
+
 
 /**
  * Creates forums for all groups that don't have any yet.
@@ -1381,8 +1391,40 @@ function og_forum_form_alter($form_id, &
       );
     }
   }
+  if ($form_id == 'node_type_form' && (
+      $form['identity']['type']['#default_value'] == 'forum' ||
+      $form['identity']['type']['#value'] == 'forum'
+    )) {
+    $map = og_forum_og_types_map();
+    $form['workflow']['og_content_type_usage'];
+    $form['workflow']['og_content_type_usage']['#options']['omitted_mail'] =
+      $map['omitted_mail'];
+  }
+  if ($form_id == 'og_admin_settings') {
+    $header = array(t('Type'), t('Usage'), t('Operations'));
+    $map = og_types_map();
+    $map = array_merge($map, og_forum_og_types_map());
+    foreach (node_get_types() as $type) {
+      $type_url_str = str_replace('_', '-', $type->type);
+      $usage = variable_get('og_content_type_usage_'. $type->type, 'omitted');
+      
+      $rows[] = array(
+        $type->name,
+        $map[$usage],
+        l(t('Edit'), "admin/content/types/$type_url_str", array(), drupal_get_destination()),      
+      );
+    }
+    $form['og_settings']['content_types']['content_types_table'] = array('#value' => theme('table', $header, $rows));
+  }
 } // function og_forum_form_alter()
 
+/**
+ * Implementation of hook hook_og_types_map().
+ */
+function og_forum_og_types_map() {
+  return array('omitted_mail' => t('OG Forum group post (typically only author may edit). Sends email notifications.'));
+}
+
 /**
  * Let group managers manage their forums
  */
@@ -1753,4 +1795,4 @@ function og_forum_is_public($tid) {
   else {
     return 0;
   }
-} // function og_forum_is_public()
\ No newline at end of file
+} // function og_forum_is_public()
