function theme_tabpage in Tabs (jQuery UI tabs) 6
Return rendered content of a tab.
@themable
File
- ./
tabs.theme.inc, line 42 - Theme functions for tabs.
Code
function theme_tabpage($element) {
$output = '';
// Ensure the tab has content before rendering it.
if (!empty($element['#ajax_url']) || !empty($element['#content']) || !empty($element['#children'])) {
$output .= '<div id="' . $element['#tab_name'] . '" class="tabs-' . $element['#tabset_name'] . '">';
$output .= '<h2 class="drupal-tabs-title js-hide">' . $element['#title'] . '</h2>';
$output .= $element['#content'] . (!empty($element['#children']) ? $element['#children'] : '');
$output .= '</div>';
}
return $output;
}