function Messaging_Message::save in Messaging 6.3
Same name and namespace in other branches
- 6.4 includes/messaging_message.class.inc \Messaging_Message::save()
- 7 messaging.message.inc \Messaging_Message::save()
Save to store / update
1 call to Messaging_Message::save()
- Messaging_Message::store in classes/
messaging_message.class.inc - Save to store if not saved yet
File
- classes/
messaging_message.class.inc, line 222 - Drupal Messaging Framework - Default class file
Class
- Messaging_Message
- Message class
Code
function save() {
// Make sure this is rendered before saving
$this
->prepare();
$this
->render();
if (empty($this->created)) {
$this->created = time();
}
messaging_store('save', $this);
}