Add comment

This commit is contained in:
Laurent Destailleur 2011-08-10 19:34:44 +00:00
parent 2b3711fa0d
commit c3ca9083c1
2 changed files with 7 additions and 4 deletions

View File

@ -21,7 +21,7 @@
* \file htdocs/core/class/hookmanager.class.php
* \ingroup core
* \brief File of class to manage hooks
* \version $Id: hookmanager.class.php,v 1.3 2011/08/10 17:40:45 hregis Exp $
* \version $Id: hookmanager.class.php,v 1.4 2011/08/10 19:35:25 eldy Exp $
*/
@ -51,7 +51,9 @@ class HookManager
/**
* Init array this->hooks with instantiated controler and/or dao
* Init array this->hooks with instantiated controler
* A hook is declared by a module by adding a constant MAIN_MODULE_MYMODULENAME_HOOKS
* with value nameofhookkey1:nameofhookkey2:...:nameofhookkeyn
* @param arraytype Array list of hooked tab/features. For example: thirdpartytab, ...
* @return int Always 1
*/

View File

@ -25,7 +25,7 @@
* \file htdocs/societe/soc.php
* \ingroup societe
* \brief Third party card page
* \version $Id: soc.php,v 1.130 2011/08/10 00:50:19 eldy Exp $
* \version $Id: soc.php,v 1.131 2011/08/10 19:34:44 eldy Exp $
*/
require("../main.inc.php");
@ -78,6 +78,7 @@ else
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
$hookmanager=new HookManager($db);
// TODO: Remove callHooks and add page into executeHooks
$hookmanager->callHooks(array('thirdpartycard','thirdparty_extrafields'));
@ -1954,5 +1955,5 @@ else
$db->close();
llxFooter('$Date: 2011/08/10 00:50:19 $ - $Revision: 1.130 $');
llxFooter('$Date: 2011/08/10 19:34:44 $ - $Revision: 1.131 $');
?>