Skip to content
Snippets Groups Projects
Commit 9aebbcfc authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: possibility to have more hooks in the same page

New: add left search block hook and extra left block hook
parent 1f4fd52d
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
*
* This program is free software; you can redistribute it and/or modify
......
......@@ -1373,10 +1373,14 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
// Search form hook of thirdparty module
if (! empty($object->hooks['searchform']))
{
$searchform.='<!-- Begin search form hook area -->'."\n";
foreach($object->hooks['searchform'] as $module)
{
$searchform.=$module->printSearchForm();
}
$searchform.="\n".'<!-- End of search form hook area -->'."\n";
}
// Define $bookmarks
......@@ -1482,19 +1486,23 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
}
print "\n";
print "</div>\n";
print "<!-- End left vertical menu -->\n";
print "\n";
// Left block hook of thirdparty module
if (! empty($object->hooks['leftblock']))
{
print '<!-- Begin left block hook area -->'."\n";
foreach($object->hooks['leftblock'] as $module)
{
$module->printLeftBlock();
}
print "\n".'<!-- End of left block hook area -->'."\n";
}
print "</div>\n";
print "<!-- End left vertical menu -->\n";
print "\n";
if ($conf->use_javascript_ajax && $conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) print '</div> <!-- End left layout -->'."\n";
else print '</td>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment