You are here

protected function Messaging_Message::do_send in Messaging 7

Send message through sending method

File

./messaging.message.inc, line 449
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

protected function do_send() {
  $this
    ->set_status(self::STATUS_SEND);

  // The message has been processed and it is for sending
  $result = $this
    ->send_method()
    ->message_send($this);
  if ($result) {
    $this->sent = time();
    $this
      ->invoke_hook('sent');
  }
  return $result;
}