Reintroducing the possibility to declare a second row of tabs

via extratabs. MDL-12551
This commit is contained in:
stronk7
2007-12-12 00:56:54 +00:00
parent a88c2ffdaa
commit 214f6d7493
+6 -1
View File
@@ -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);