0 Members and 1 Guest are viewing this topic.
// Go through the sub buttons if there are any. if (!empty($button['sub_buttons'])) foreach ($button['sub_buttons'] as $key => $subbutton) { if (empty($subbutton['show'])) unset($button['sub_buttons'][$key]); }
// Go through the sub buttons if there are any. if (!empty($button['sub_buttons'])) foreach ($button['sub_buttons'] as $key => $subbutton) { if (empty($subbutton['show'])) unset($button['sub_buttons'][$key]); // 2nd level subbutton if(!empty($subbutton['sub_buttons'])) { foreach($subbutton['sub_buttons'] as $key2 => $sub2_button) { if(empty($sub2_button['show'])) unset($button['sub_buttons'][$key]['sub_buttons'][$key2]); } } }