You are here

function bartik_preprocess_block in Drupal 7

Same name and namespace in other branches
  1. 8 core/themes/bartik/bartik.theme \bartik_preprocess_block()
  2. 9 core/themes/bartik/bartik.theme \bartik_preprocess_block()
  3. 10 core/themes/bartik/bartik.theme \bartik_preprocess_block()

Override or insert variables into the block template.

File

themes/bartik/template.php, line 120

Code

function bartik_preprocess_block(&$variables) {

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