You are here

function notifications_module_invoke in Notifications 6

Same name and namespace in other branches
  1. 5 notifications.module \notifications_module_invoke()
  2. 6.2 notifications.module \notifications_module_invoke()
  3. 6.3 notifications.module \notifications_module_invoke()

Invokes hook_notifications() in every module.

We cannot use module_invoke() for this, because the arguments need to be passed by reference.

8 calls to notifications_module_invoke()
notifications_event in ./notifications.module
Process subscriptions events
notifications_form_subscribe_confirm in ./notifications.pages.inc
Form for subscription confirmation
notifications_form_unsubscribe_confirm in ./notifications.pages.inc
Form for unsubscription confirmation
notifications_load_event in ./notifications.cron.inc
Get events with static caching
notifications_module_information in ./notifications.module
Invokes hook_notifications() with a single parameter or more but not needing an object to be passed as reference.

... See full list

File

./notifications.module, line 1022
Notifications module

Code

function notifications_module_invoke($op, &$arg0, $arg1 = NULL, $arg2 = NULL) {
  $result = array();
  foreach (module_implements('notifications') as $module) {
    $function = $module . '_notifications';
    if ($return = $function($op, $arg0, $arg1, $arg2)) {
      $result = array_merge($result, $return);
    }
  }
  return $result;
}