diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php index 4e97c547c43..78d31cf19a8 100755 --- a/htdocs/core/class/hookmanager.class.php +++ b/htdocs/core/class/hookmanager.class.php @@ -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 */ diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index ba891f65944..9bb459e3879 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -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 $'); ?> \ No newline at end of file