Add hook on propal/order/incoive list

This commit is contained in:
Florian Henry 2013-05-28 18:35:15 +02:00
parent 23c25066d3
commit 7c56da05b8
3 changed files with 12 additions and 2 deletions

View File

@ -77,7 +77,7 @@ $result = restrictedArea($user, $module, $objectid, $dbtable);
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('propalcard'));
$hookmanager->initHooks(array('propallist'));
@ -85,6 +85,10 @@ $hookmanager->initHooks(array('propalcard'));
* Actions
*/
$parameters=array('socid'=>$socid);
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
// Do we click on purge search criteria ?
if (GETPOST("button_removefilter_x"))
{

View File

@ -67,10 +67,16 @@ $limit = $conf->liste_limit;
$viewstatut=GETPOST('viewstatut');
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('orderlist'));
/*
* Actions
*/
$parameters=array('socid'=>$socid);
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hook
// Do we click on purge search criteria ?
if (GETPOST("button_removefilter_x"))
{

View File

@ -98,7 +98,7 @@ $usehm=(! empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?$conf->global->MA
$object=new Facture($db);
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('invoicecard'));
$hookmanager->initHooks(array('invoicelist'));
$now=dol_now();