Commit 76eace31 authored by Dries's avatar Dries

- Usability improvement: only display subtabs if there is more than one subtab.  If there is only one, make sure it is the set to be the default subtab and all is well.
parent 9b8afe16
......@@ -610,7 +610,7 @@ function theme_menu_local_tasks() {
$output .= "</ul>\n";
foreach ($local_tasks[$pid]['children'] as $mid) {
if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children'])) {
if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children']) > 1) {
$output .= "<ul class=\"tabs secondary\">\n";
foreach ($local_tasks[$mid]['children'] as $cid) {
$output .= theme('menu_local_task', $cid, menu_in_active_trail($cid));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment