- <?php
-
- * @file
- * Integrates Notifications with Facebook-style Statuses.
- */
-
- define('FBSS_NOTIFICATIONS_PAGER', 20);
-
- * Implementation of hook_menu().
- */
- function fbss_notifications_menu() {
- $items = array();
- $items['admin/messaging/notifications/status'] = array(
- 'title' => 'Status subscriptions',
- 'type' => MENU_LOCAL_TASK,
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('fbss_notifications_settings_form'),
- 'access arguments' => array('administer site configuration'),
- 'file' => 'fbss_notifications.pages.inc',
- );
- $items['user/%user/notifications/status'] = array(
- 'type' => MENU_LOCAL_TASK,
- 'access arguments' => array('maintain own subscriptions'),
- 'title' => 'Status threads',
- 'page callback' => 'fbss_notifications_page_thread',
- 'page arguments' => array(1),
- 'weight' => 10,
- 'file' => 'fbss_notifications.pages.inc',
- );
- foreach (facebook_status_all_contexts() as $type => $info) {
- $items['user/%user/notifications/'. $type .'-stream'] = array(
- 'type' => MENU_LOCAL_TASK,
- 'access callback' => FALSE,
- 'title' => $info['title'] .' statuses',
- 'page callback' => 'fbss_notifications_page_type',
- 'p