You are here

function _disable_messages_error_handler in Disable Messages 8

Same name and namespace in other branches
  1. 6 disable_messages.module \_disable_messages_error_handler()
  2. 7 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.

Parameters

int $errno: Number of errors.

string $errstr: Error string.

string $errfile: Error File name.

int $errline: Error line.

1 string reference to '_disable_messages_error_handler'
DisableMessagesSettingsForm::validateForm in src/Form/DisableMessagesSettingsForm.php
Form validation handler.

File

./disable_messages.module, line 210
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.
}