Make useless hook useful (and rename to eliminate confusion)
[squirrelmail.git] / src / addrbook_search_html.php
index ec37906654d5a7acb9ba15641b2e08dcaa7d0c9e..4c8f9177e9527e7bd8063b00edb852094fff8860 100644 (file)
@@ -6,7 +6,7 @@
  *
  * This file is included from compose.php
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -65,7 +65,7 @@ function addr_insert_hidden() {
  * @param bool $includesource If true, adds backend column to address listing
  */
 function addr_display_result($res, $includesource = true) {
-    global $color, $javascript_on, $PHP_SELF, $squirrelmail_language;
+    global $color, $PHP_SELF, $squirrelmail_language;
 
     global $oTemplate, $oErrorHandler;
     
@@ -114,7 +114,7 @@ $oTemplate->assign('backends', getBackends());
 $oTemplate->display('addressbook_search_form.tpl');
 
 echo "</form>\n";
-do_hook('addrbook_html_search_below');
+do_hook('addrbook_html_search_below', $null);
 /* End search form */
 
 /* List addresses. Show personal addressbook */
@@ -125,8 +125,6 @@ if ($addrquery == '' || ! empty($listall)) {
             $backend = $abook->localbackend;
         }
 
-        /* echo '<h3 align="center">' . $abook->backends[$backend]->sname) . "</h3>\n"; */
-
         $res = $abook->list_addr($backend);
 
         if (is_array($res)) {
@@ -176,4 +174,4 @@ if ($addrquery == '' || sizeof($res) == 0) {
 echo '<hr />';
 
 $oTemplate->display('footer.tpl');
-?>
\ No newline at end of file
+?>