Reintroducing the possibility to declare a second row of tabs
via extratabs. MDL-12551
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user