Allow removal of tabs
For being able to remove or replace tabs, it is also necessary to call this function with 'remove' mode.
This commit is contained in:
parent
2ef65a2877
commit
35aa9b0d35
@ -103,6 +103,8 @@ function moPrepareHead($object)
|
|||||||
// 'entity:-tabname:Title:@mrp:/mrp/mypage.php?id=__ID__'
|
// 'entity:-tabname:Title:@mrp:/mrp/mypage.php?id=__ID__'
|
||||||
//); // to remove a tab
|
//); // to remove a tab
|
||||||
complete_head_from_modules($conf, $langs, $object, $head, $h, 'mo@mrp');
|
complete_head_from_modules($conf, $langs, $object, $head, $h, 'mo@mrp');
|
||||||
|
|
||||||
|
complete_head_from_modules($conf, $langs, $object, $head, $h, 'mo@mrp', 'remove');
|
||||||
|
|
||||||
return $head;
|
return $head;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user