From: pdontthink Date: Sat, 28 Feb 2004 08:29:24 +0000 (+0000) Subject: making read_body_menu_top hook more powerful X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=764971df8e3d7b90cf79da8c8f293fc97063ddf0 making read_body_menu_top hook more powerful git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6685 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/read_body.php b/src/read_body.php index 9fcefb9c..1d760c19 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -693,7 +693,13 @@ function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_resp $menu_row .= ''; // echo rows, with hooks - do_hook('read_body_menu_top'); + $ret = do_hook_function('read_body_menu_top', array($nav_row, $menu_row)); + if (!empty($ret[0])) { + $nav_row = $ret[0]; + } + if (!empty($ret[1])) { + $menu_row = $ret[1]; + } echo ''; echo $nav_on_top ? $nav_row . $menu_row : $menu_row . $nav_row; echo '
'."\n";