You are here

function _disable_messages_error_handler in Disable Messages 7

Same name and namespace in other branches
  1. 8 disable_messages.module \_disable_messages_error_handler()
  2. 6 disable_messages.module \_disable_messages_error_handler()
  3. 2.x disable_messages.module \_disable_messages_error_handler()

Custom error handler.

To catch the preg error while validating the regular expressions.

1 string reference to '_disable_messages_error_handler'
disable_messages_settings_form_validate in ./disable_messages.module
Validation function for disable_messages_settings_form.

File

./disable_messages.module, line 450
The disable_messages module file.

Code

function _disable_messages_error_handler($errno, $errstr, $errfile, $errline) {
  global $_disable_messages_error, $_disable_messages_error_no;
  $_disable_messages_error = $errstr;
  $_disable_messages_error_no = $errno;

  // Don't do anything other than set the error string.
}