NEW: hook to enrich homepage open elements dashboard
This commit is contained in:
parent
44e5566ee5
commit
32d911b1df
@ -499,6 +499,14 @@ if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->to_p
|
|||||||
$dashboardlines[] = $board->load_board($user,'topay');
|
$dashboardlines[] = $board->load_board($user,'topay');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$object=new stdClass();
|
||||||
|
$parameters=array();
|
||||||
|
$action='';
|
||||||
|
$reshook=$hookmanager->executeHooks('addOpenElementsDashboardLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
if ($reshook == 0) {
|
||||||
|
$dashboardlines = array_merge($dashboardlines, $hookmanager->resArray);
|
||||||
|
}
|
||||||
|
|
||||||
// Calculate total nb of late
|
// Calculate total nb of late
|
||||||
$totallate=0;
|
$totallate=0;
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user