protected function Messaging_Message::process_method in Messaging 6.4
Process through sending method
This can go through multiple redirections, we stop it when we get to the same method again or process = FALSE
2 calls to Messaging_Message::process_method()
- Messaging_Message::prepare in includes/
messaging_message.class.inc - Prepare for sending through given method
- Messaging_Message::set_user in includes/
messaging_message.class.inc - Set user object and related properties
File
- includes/
messaging_message.class.inc, line 320 - Drupal Messaging Framework - Message class file
Class
- Messaging_Message
- Message class
Code
protected function process_method($operation) {
if ($this
->send_method()) {
$this->process = TRUE;
$methods = array();
// The send method can stop this by setting 'process' to FALSE or 'discard' to TRUE
while ($this->process && !$this->discard && !in_array($this->method, $methods)) {
$methods[] = $this->method;
$this
->send_method()
->{$operation}($this);
}
return TRUE;
}
else {
return FALSE;
}
}