function Messaging_Message::discard in Messaging 7
Same name and namespace in other branches
- 6.4 includes/messaging_message.class.inc \Messaging_Message::discard()
Discard message
File
- ./
messaging.message.inc, line 610 - Drupal Messaging Framework - Message class file
Class
- Messaging_Message
- Message class
Code
function discard($reason = 'No reason.') {
$this->result = FALSE;
$this->discard = TRUE;
$this
->debug('Message discarded during process', array(
'reason' => $reason,
));
$this
->delete();
}