You are here

function Messaging_Message::save in Messaging 6.4

Same name and namespace in other branches
  1. 6.3 classes/messaging_message.class.inc \Messaging_Message::save()
  2. 7 messaging.message.inc \Messaging_Message::save()

Save to store / update

1 call to Messaging_Message::save()
Messaging_Message::store in includes/messaging_message.class.inc
Save to store if not saved yet or updated

File

includes/messaging_message.class.inc, line 380
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

function save() {
  $result = messaging_store()
    ->message_save($this);
  if ($result) {
    $this->updated = FALSE;
  }
  else {
    $this
      ->set_error('The message cannot be saved.');
  }
}