fbss_notifications.module

Tracking 6.x-3.x branch
  1. drupal
    1. 6 contributions/facebook_status/submodules/fbss_notifications/fbss_notifications.module

Integrates Notifications with Facebook-style Statuses.

Functions & methods

NameDescription
fbss_notifications_facebook_status_deleteImplementation of hook_facebook_status_delete().
fbss_notifications_facebook_status_saveImplementation of hook_facebook_status_save().
fbss_notifications_fbss_comments_after_saveImplementation of hook_fbss_comments_after_save().
fbss_notifications_menuImplementation of hook_menu().
fbss_notifications_messagingImplementation of hook_messaging().
fbss_notifications_notificationsImplementation of hook_notifications().
fbss_notifications_permImplementation of hook_perm().

Constants

NameDescription
FBSS_NOTIFICATIONS_PAGER

File

View source
  1. <?php
  2. /**
  3. * @file
  4. * Integrates Notifications with Facebook-style Statuses.
  5. */
  6. // Max number of elements per page for user account tabs
  7. define('FBSS_NOTIFICATIONS_PAGER', 20);
  8. /**
  9. * Implementation of hook_menu().
  10. */
  11. function fbss_notifications_menu() {
  12. $items = array();
  13. $items['admin/messaging/notifications/status'] = array(
  14. 'title' => 'Status subscriptions',
  15. 'type' => MENU_LOCAL_TASK,
  16. 'page callback' => 'drupal_get_form',
  17. 'page arguments' => array('fbss_notifications_settings_form'),
  18. 'access arguments' => array('administer site configuration'),
  19. 'file' => 'fbss_notifications.pages.inc',
  20. );
  21. $items['user/%user/notifications/status'] = array(
  22. 'type' => MENU_LOCAL_TASK,
  23. 'access arguments' => array('maintain own subscriptions'),
  24. 'title' => 'Status threads',
  25. 'page callback' => 'fbss_notifications_page_thread',
  26. 'page arguments' => array(1),
  27. 'weight' => 10,
  28. 'file' => 'fbss_notifications.pages.inc',
  29. );
  30. foreach (facebook_status_all_contexts() as $type => $info) {
  31. $items['user/%user/notifications/'. $type .'-stream'] = array(
  32. 'type' => MENU_LOCAL_TASK,
  33. 'access callback' => FALSE,
  34. 'title' => $info['title'] .' statuses',
  35. 'page callback' => 'fbss_notifications_page_type',
  36. 'p