You are here

function messaging_message_invoke in Messaging 6

Same name and namespace in other branches
  1. 6.2 messaging.module \messaging_message_invoke()

Invoke callbacks

1 call to messaging_message_invoke()
messaging_message_callbacks in ./messaging.module
Invoke callback list

File

./messaging.module, line 270

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;
}