There is a problem with core themes showing secdonary tabs, such as Bratik. This occurs in webform and Media moduel settings, forexample.


I changed the tabs code from:

<?php if (!empty($tabs['#primary'])): ?>
  <div class="tabs"><?php print render($tabs); ?></div>
<?php endif; ?>


<?php if (!empty($tabs['#primary']) || !empty($tabs['#secondary'])): ?>
  <div class="tabs"><?php print render($tabs); ?></div>
<?php endif; ?>


montesq’s picture

Can we have more details?
Except Bartik, with which theme do you reproduce?
Can you provide a screenshot of what you get and what is expected?
Could you give the steps to reproduce?

Amarjit’s picture

Hello montesq,

This is to do with the Bratik theme.

As an example:

  • Simply install Drupal 7.
  • Install Webform module.
  • Create a webform and you will notice there are no tabs on the AJAX overlay.

The reason for this is page.tpl.php does not contain

print render($tabs);

This may be part of a bigger problem - I am not sure.

Hope this helps.