protected function Notifications_Queue::process_callback in Notifications 6.4
Callback for module dependent data
Some data stored in the notifications system is meant to be processed by other modules and this is indicated by a module column in the data.
This function calls the module function if available, defaulting to the notifications provided function when not. The arguments are passed as is
Parameters
$module: Module name
$function: Function name in module
2 calls to Notifications_Queue::process_callback()
- Notifications_Queue::process_group in includes/
notifications_queue.class.inc - Process queued rows, send messages, etc, etc...
- Notifications_Queue::process_queue in includes/
notifications_queue.class.inc - Process subscriptions queue
File
- includes/
notifications_queue.class.inc, line 52
Class
- Notifications_Queue
- Queue management and processing
Code
protected function process_callback() {
$args = func_get_args();
$module = array_shift($args);
$function = array_shift($args);
if ($module && function_exists($module . '_notifications_' . $function)) {
$callback = $module . '_notifications_' . $function;
}
else {
$callback = array(
$this,
$function,
);
}
return call_user_func_array($callback, $args);
}