Index: og_notifications.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/og/modules/og_notifications/Attic/og_notifications.module,v
retrieving revision 1.24.4.16
diff -u -p -r1.24.4.16 og_notifications.module
--- og_notifications.module	10 Jun 2009 16:13:12 -0000	1.24.4.16
+++ og_notifications.module	29 Jul 2009 19:55:01 -0000
@@ -28,6 +28,22 @@ function og_notifications_perm() {
 }
 
 /**
+ * Implementation of hook_menu()
+ */
+function og_notifications_menu() {
+  $items = array();
+  $items['user/%user/notifications/grouptype'] = array(
+    'type' => MENU_LOCAL_TASK,
+    'access callback' => FALSE,
+    'title' => 'Content type in group',
+    'page callback' => 'og_notifications_page_grouptype',
+    'page arguments' => array(1),
+    'weight' => 10,
+  );
+  return $items;
+}
+
+/**
  * Implementation of hook_user().
  * Handle uid entry in the og_notifications table.
  */
@@ -477,6 +493,35 @@ function og_notifications_user_unsubscri
 }
 
 /**
+ * Display the users notifications subscriptions
+ *
+ * @param Object $account
+ *  The user account object
+ */
+function og_notifications_page_grouptype($account = NULL) {
+  global $user;
+  if (!isset($account)) {
+    $account = $user;
+  }
+  // List of all subscribed node types
+  $subscriptions = notifications_get_subscriptions(array('type' => 'grouptype', 'uid' => $account->uid), array('type' => NULL), TRUE, 'value');
+
+  $output = '';
+  $types = notifications_content_types('name');
+  if (!$types) {
+    $output .= t('There are no active content types.');
+  }
+  else {
+    $defaults = array('type' => 'nodetype', 'event_type' => 'node');
+    $options = array('title' => t('Type'));
+    $output .= drupal_get_form('notifications_user_form', $account, 'grouptype', $subscriptions, $types, $defaults, $options);
+
+  }
+  return $output;
+}
+
+
+/**
  * Options to display for node subscriptions.
  */
 function _og_notifications_node_options($account, $node) {
@@ -543,4 +588,4 @@ function og_notifications_autosubscribe_
     0 => t('Disabled'),
     1 => t('Enabled'),
   );
-}
\ No newline at end of file
+}
