You are here

public function Messaging_Message::record in Messaging 7

Create or update message record

2 calls to Messaging_Message::record()
Messaging_Message::log in ./messaging.message.inc
Log message
Messaging_Message::save in ./messaging.message.inc
Save message to store $name

File

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

Class

Messaging_Message
Message class

Code

public function record($update = FALSE) {
  if (empty($this->msid) || $update) {
    $this->updated = time();
    if (!isset($this->created)) {
      $this->created = $this->updated;
    }
    return drupal_write_record('messaging_message', $this, $this->msid ? 'msid' : array());
  }
}