From ff214dd295c5105d11c3eebef7527255c5e02600 Mon Sep 17 00:00:00 2001 From: fhenry Date: Thu, 14 Feb 2013 16:25:43 +0100 Subject: [PATCH] Manage tabs (add/remove by external module) for mass emalings screen --- htdocs/core/lib/emailing.lib.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/core/lib/emailing.lib.php b/htdocs/core/lib/emailing.lib.php index e3d1b790f6e..766886af2c0 100644 --- a/htdocs/core/lib/emailing.lib.php +++ b/htdocs/core/lib/emailing.lib.php @@ -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,'mailling'); + $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,'mailling','remove'); + return $head; }