Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The function below does not seem to work. As the output always returns only
in page view mode on a rendered node.
function theme_tabpage($element) {
$output ='<div id="tabs-'. $element['#tabset_name'] .'-'. $element['#index'] .'">';
$output .= '<h2 class="drupal-tabs-title">'. $element['#title'] .'</h2>';
$output .= $element['#content'] . $element['#children'];
$output .='</div>';
return $output;
}
Looks like there is an attempt at theming by setting up #tabset_name but that method does not seem to work on CCK field tabsets. If you could give it a unique ID then it would be completely customizable and one would be able to over-ride the default drupal-tabs class stuff.
Comments
Comment #1
Cactii1 CreditAttribution: Cactii1 commentedOops... forgot to wrap that in code...
In page view mode on a rendered node the output always returns: div id="tabs-" class="drupal-tabs"
This doesn't allow positioning... width definition... border or margin definition... only the Drupal default.