function messaging_message_invoke in Messaging 6.2
Same name and namespace in other branches
- 6 messaging.module \messaging_message_invoke()
Invoke callbacks
1 call to messaging_message_invoke()
- messaging_message_callbacks in ./
messaging.module - Invoke ordered list of callbacks on message
File
- ./
messaging.module, line 312
Code
function messaging_message_invoke($callback_list, $message, $info) {
if (is_string($callback_list)) {
$callback_list = array(
$callback_list,
);
}
// Any of the functions can 'swallow' the message and stop processing
while ($message->process && ($callback = array_shift($callback_list))) {
$message = _messaging_callback_invoke($callback, $message, $info);
}
return $message;
}