From: pdontthink Date: Sat, 1 Aug 2015 04:32:48 +0000 (+0000) Subject: Add new login_before_page_header (boolean) hook; allows plugins to have more explicit... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6ce16a176c91da844b39e931a203ec25dd0c2c56;p=squirrelmail.git Add new login_before_page_header (boolean) hook; allows plugins to have more explicit control over login page header git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14518 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/doc/ChangeLog b/doc/ChangeLog index 27153e78..62378f38 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -398,6 +398,8 @@ Version 1.5.2 - SVN - Added MD5 alternative to directory hash calculation - Added ability for administrator to control whether or not users can edit their reply-to address ($edit_reply_to in config.php) + - Added new "login_before_page_header" (boolean) hook; allows + plugins to have more explicit control over login page header Version 1.5.1 (branched on 2006-02-12) -------------------------------------- diff --git a/src/login.php b/src/login.php index 8149b45b..536ca9ac 100644 --- a/src/login.php +++ b/src/login.php @@ -100,7 +100,9 @@ if (! isset($color) || ! is_array($color)) { $color[8] = '#000000'; /* black Normal text */ } -displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE ); +// if any plugin returns TRUE here, the standard page header will be skipped +if (!boolean_hook_function('login_before_page_header', array($header), 1)) + displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE );