From 6ce16a176c91da844b39e931a203ec25dd0c2c56 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 1 Aug 2015 04:32:48 +0000 Subject: [PATCH] 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 --- doc/ChangeLog | 2 ++ src/login.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.25.1