You are here

function Messaging_Message::delete in Messaging 6.4

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

Delete if already on store

1 call to Messaging_Message::delete()
Messaging_Message::discard in includes/messaging_message.class.inc
Discard message

File

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

Class

Messaging_Message
Message class

Code

function delete() {
  if (!empty($this->mqid) && !$this->deleted) {
    $result = messaging_store()
      ->message_delete($this);
    $this->deleted = TRUE;
    return $result;
  }
}