add holliday_admin_prepare_head
sorry eldy i forget it
This commit is contained in:
parent
bd5729f941
commit
43c5d7abdc
@ -61,3 +61,32 @@ function holiday_prepare_head($object)
|
|||||||
|
|
||||||
return $head;
|
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;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user