User:Emanuele/hooktemplate test From Online Manual

Jump to: navigation, search

Called from: Errors.php, just after the error itself has been logged but before it has been output to the user.

Purpose: To allow reformatting of the error message, prior to notification to user, or perhaps to log or process in an outside system (e.g. sending an email to administrators on certain types of error occurring).

Accepts:1 function name.

Sends:

  • $message is the message text itself.
  • $error_type is the SMF category of an error, e.g. General (general), undefined variables/indexes (undefined_vars), user errors like forgotten passwords (user), database/query errors (database).
  • $error_level is the PHP error level ident. See the PHP manual for the values this is.
  • $file is the filename this occurred in (full server path). $line is the line number of the error.



Advertisement: