From 79d8ce9d1ded4bdd69cb3ae444ee56e63e273512 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Sat, 12 Apr 2014 10:00:28 +0200 Subject: [PATCH] Add tabs in bank card --- htdocs/core/lib/bank.lib.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/core/lib/bank.lib.php b/htdocs/core/lib/bank.lib.php index 97169393376..1d669503f0d 100644 --- a/htdocs/core/lib/bank.lib.php +++ b/htdocs/core/lib/bank.lib.php @@ -78,6 +78,14 @@ function bank_prepare_head($object) $head[$h][2] = 'statement'; $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,'bank'); + + complete_head_from_modules($conf,$langs,$object,$head,$h,'bank','remove'); return $head; }