You are here

function notifications_module_invoke in Notifications 6.3

Same name and namespace in other branches
  1. 5 notifications.module \notifications_module_invoke()
  2. 6 notifications.module \notifications_module_invoke()
  3. 6.2 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.

6 calls to notifications_module_invoke()
notifications_event in ./notifications.module
Process subscriptions events
notifications_lite_notifications_post in notifications_lite/notifications_lite.module
Post message using notifications
notifications_load_event in ./notifications.cron.inc
Get events with static caching. Handle event deletion if not available anymore
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.
notifications_queue in ./notifications.module
Queue events for notifications adding query conditions from plug-ins

... See full list

File

./notifications.module, line 1071
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;
}