function Messaging_Message::set_error in Messaging 6.3
Same name and namespace in other branches
- 6.4 includes/messaging_message.class.inc \Messaging_Message::set_error()
- 7 messaging.message.inc \Messaging_Message::set_error()
Set error condition and stop processing
Parameters
$text: Error message to be stored
1 call to Messaging_Message::set_error()
- Messaging_Message::method_invoke in classes/
messaging_message.class.inc - Invoke method callback with this message
File
- classes/
messaging_message.class.inc, line 315 - Drupal Messaging Framework - Default class file
Class
- Messaging_Message
- Message class
Code
function set_error($text, $code = 1) {
// This will stop processing if we are in the middle of anything
$this->process = FALSE;
$this->result = FALSE;
$this->error = $code;
$this->error_msg = $text;
}