You are here

function Messaging_Message::discard in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.message.inc \Messaging_Message::discard()

Discard message

2 calls to Messaging_Message::discard()
Messaging_Message::done in includes/messaging_message.class.inc
After the message has been processed
Messaging_Message::process in includes/messaging_message.class.inc
Check whether the message is to be sent / queued

File

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

Class

Messaging_Message
Message class

Code

function discard($reason = 'No reason.') {
  $this->success = FALSE;
  $this
    ->message_log('Message discarded during process', array(
    'reason' => $reason,
  ));
  $this
    ->delete();
}