New: Add hook on index statistics array
This commit is contained in:
parent
c033c39640
commit
d49780fb13
@ -2,8 +2,9 @@
|
||||
# Dolibarr example for conf.php file
|
||||
#
|
||||
# Do not edit this file without changing its name.
|
||||
# This file is used by Dolibarr setup process to create true Dolibarr
|
||||
# config file called "conf.php".
|
||||
# This file is an example of empty config file for Dolibarr than can be used to create "conf.php".
|
||||
#
|
||||
# Warning: Be sure to not add line feed or spaces after closing php tag.
|
||||
#
|
||||
|
||||
|
||||
|
||||
@ -33,6 +33,10 @@ require_once(DOL_DOCUMENT_ROOT."/boxes.php");
|
||||
if (! isset($_GET["mainmenu"])) $_GET["mainmenu"]="home";
|
||||
|
||||
|
||||
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
|
||||
$hookmanager=new HookManager($db);
|
||||
$hookmanager->callHooks(array('index'));
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
@ -250,6 +254,11 @@ if ($user->societe_id == 0)
|
||||
}
|
||||
}
|
||||
|
||||
$object=(object) array();
|
||||
$parameters=array();
|
||||
$action='';
|
||||
$reshook=$hookmanager->executeHooks('addStatisticLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||
|
||||
print '</table>';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user