forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -55,7 +55,7 @@ function contract_prepare_head(Contrat $object)
|
||||
// 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, 'contract');
|
||||
complete_head_from_modules($conf, $langs, $object, $head, $h, 'contract', 'add', 'core');
|
||||
|
||||
if (empty($conf->global->MAIN_DISABLE_NOTES_TAB)) {
|
||||
$nbNote = 0;
|
||||
@@ -96,6 +96,8 @@ function contract_prepare_head(Contrat $object)
|
||||
$head[$h][2] = 'agenda';
|
||||
$h++;
|
||||
|
||||
complete_head_from_modules($conf, $langs, $object, $head, $h, 'contract', 'add', 'external');
|
||||
|
||||
complete_head_from_modules($conf, $langs, $object, $head, $h, 'contract', 'remove');
|
||||
|
||||
return $head;
|
||||
@@ -126,7 +128,7 @@ function contract_admin_prepare_head()
|
||||
// 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:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
|
||||
complete_head_from_modules($conf, $langs, null, $head, $h, 'contract_admin');
|
||||
complete_head_from_modules($conf, $langs, null, $head, $h, 'contract_admin', 'add', 'core');
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT.'/contrat/admin/contract_extrafields.php';
|
||||
$head[$h][1] = $langs->trans("ExtraFields");
|
||||
@@ -146,6 +148,8 @@ function contract_admin_prepare_head()
|
||||
$head[$h][2] = 'attributeslines';
|
||||
$h++;
|
||||
|
||||
complete_head_from_modules($conf, $langs, null, $head, $h, 'contract_admin', 'add', 'external');
|
||||
|
||||
complete_head_from_modules($conf, $langs, null, $head, $h, 'contract_admin', 'remove');
|
||||
|
||||
return $head;
|
||||
|
||||
Reference in New Issue
Block a user