add holliday_admin_prepare_head

sorry eldy i forget it
This commit is contained in:
BENKE Charlene 2018-07-01 17:33:35 +02:00 committed by GitHub
parent bd5729f941
commit 43c5d7abdc
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;
}