Skip to content

Commit

Permalink
add holliday_admin_prepare_head
Browse files Browse the repository at this point in the history
sorry eldy i forget it
  • Loading branch information
defrance committed Jul 1, 2018
1 parent bd5729f commit 43c5d7a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions htdocs/core/lib/holiday.lib.php
Expand Up @@ -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;
}

0 comments on commit 43c5d7a

Please sign in to comment.