function bartik_preprocess_block

Implements hook_preprocess_HOOK() for block.tpl.php.

File

drupal/core/themes/bartik/template.php, line 116
Functions to support theming in the Bartik theme.

Code

function bartik_preprocess_block(&$variables) {

  // In the header and footer regions visually hide block titles.
  if ($variables['block']->region == 'header' || $variables['block']->region == 'footer') {
    $variables['title_attributes']['class'][] = 'element-invisible';
  }
}