Skip to content
Snippets Groups Projects
Commit fedf4ede authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #661 from FHenry/develop

Manage tabs (add/remove by external module) for mass emalings screen
parents 2bad9c0d 36940310
Branches
Tags
No related merge requests found
......@@ -31,6 +31,12 @@ function emailing_prepare_head($object)
{
global $user, $langs, $conf;
// 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:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
complete_head_from_modules($conf,$langs,$object,$head,$h,'emailing');
$h = 0;
$head = array();
......@@ -53,6 +59,8 @@ function emailing_prepare_head($object)
$head[$h][2] = 'info';
$h++;
complete_head_from_modules($conf,$langs,$object,$head,$h,'emailing','remove');
return $head;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment