You are here

function notifications_info in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications.module \notifications_info()
  2. 6.2 notifications.module \notifications_info()
  3. 6.3 notifications.module \notifications_info()
  4. 7 notifications.module \notifications_info()

Invoke hook_notifications($name) on all modules

This is like module_invoke all with some differences:

  • The results are just merged (not recursively)
  • The module name is added to each resulting array
  • We cache all the results
9 calls to notifications_info()
notifications_build_method in ./notifications.module
Information about digesting method for a send interval.
notifications_content_test_template_form in notifications_content/notifications_content.pages.inc
Template testing form
notifications_custom_event_actions in notifications_custom/notifications_custom.module
List event actions
notifications_custom_form in notifications_custom/notifications_custom.admin.inc
Edit / create custom subscriptions
notifications_custom_rebuild in notifications_custom/notifications_custom.module
Rebuild list of custom subscriptions from modules and the database

... See full list

File

./notifications.module, line 2052
Notifications module

Code

function &notifications_info($name, $param = NULL, $refresh = FALSE) {
  $info =& messaging_static('notifications_info_' . $name);
  if (!isset($info) || $refresh) {
    $info = messaging_module_invoke_all('notifications', $name, $param);

    // Provide alter hook: notifications_name
    drupal_alter('notifications_' . strtr($name, ' ', '_'), $info);
  }
  return $info;
}