Merge pull request #9040 from defrance/patch-122

add holliday_admin_prepare_head
This commit is contained in:
Laurent Destailleur 2018-07-02 16:18:25 +02:00 committed by GitHub
commit e72107422b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,3 +61,32 @@ function holiday_prepare_head($object)
return $head;
}
/**
* Return array head with list of tabs to view object informations
*
* @return array head
*/
function holiday_admin_prepare_head()
{
global $db, $langs, $conf, $user;
$h = 0;
$head = array();
$head[$h][0] = DOL_URL_ROOT.'/admin/holiday.php';
$head[$h][1] = $langs->trans("Setup");
$head[$h][2] = 'holiday';
$h++;
// Show more tabs from modules
// Entries must be declared in modules descriptor with line
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
// $this->tabs = array('entity:-tabname); to remove a tab
complete_head_from_modules($conf,$langs,$object,$head,$h,'holiday_admin');
complete_head_from_modules($conf,$langs,$object,$head,$h,'holiday_admin','remove');
return $head;
}