function notifications_module_invoke in Notifications 6.2
Same name and namespace in other branches
- 5 notifications.module \notifications_module_invoke()
- 6 notifications.module \notifications_module_invoke()
- 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.
6 calls to notifications_module_invoke()
- notifications_event in ./
notifications.module - Process subscriptions events
- notifications_lite_add_to_queue in notifications_lite/
notifications_lite.module - Put simple notification into queue
- 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
File
- ./
notifications.module, line 1072 - 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;
}