New hooks for managing/catching/logging errors
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Feb 2004 04:57:56 +0000 (04:57 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Feb 2004 04:57:56 +0000 (04:57 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6553 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/display_messages.php

index 74c8385..83848d0 100644 (file)
@@ -87,6 +87,8 @@ function logout_error( $errString, $errTitle = '' ) {
         $color[8]  = '#000000';  /* black         Normal text            */
     }
 
+    list($junk, $errString, $errTitle) = do_hook('logout_error', $errString, $errTitle);
+
     if ( $errTitle == '' ) {
         $errTitle = $errString;
     }
@@ -124,6 +126,8 @@ function error_box($string, $color) {
 
     $err = _("ERROR");
 
+    $string = concat_hook_function('error_box', $string);
+
     /* check if the page header has been sent; if not, send it! */
     if(!isset($pageheader_sent) && !$pageheader_sent) {
         /* include this just to be sure */