You are here

function Messaging_Message::method_process in Messaging 6.3

Invoke multiple method callbacks

2 calls to Messaging_Message::method_process()
Messaging_Message::post in classes/messaging_message.class.inc
Actual message sending through sending method
Messaging_Message::queue in classes/messaging_message.class.inc

File

classes/messaging_message.class.inc, line 325
Drupal Messaging Framework - Default class file

Class

Messaging_Message
Message class

Code

function method_process() {
  $callbacks = func_get_args();
  $this->process = TRUE;
  $this->result = TRUE;
  while ($this->process && ($key = array_shift($callbacks))) {
    $result = $this
      ->method_invoke($key);
  }

  // Success if all callbacks processed and result is not FALSE
  if ($result === FALSE || !empty($callbacks)) {
    $this->result = FALSE;
  }
  return $this->result;
}