From 8884b320b4ea8ee4b8d7065352f9263132a8c738 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 12 Dec 2007 00:58:09 +0000 Subject: [PATCH] Reintroducing the possibility to declare a second row of tabs via extratabs. MDL-12551 Merged from MOODLE_19_STABLE --- admin/roles/tabs.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/roles/tabs.php b/admin/roles/tabs.php index 5d753c2127..91eac25ddb 100755 --- a/admin/roles/tabs.php +++ b/admin/roles/tabs.php @@ -210,10 +210,15 @@ if ($context->contextlevel != CONTEXT_SYSTEM) { // Print tabs for anything ex } } - $inactive = array($currenttab); + $inactive[] = $currenttab; $tabs = array($toprow); +/// If there are any secondrow defined, let's introduce it + if (isset($secondrow) && is_array($secondrow) && !empty($secondrow)) { + $tabs[] = $secondrow; + } + print_tabs($tabs, $currenttab, $inactive, $activetwo); -- 2.39.5