function bartik_preprocess_block in Drupal 7
Same name and namespace in other branches
- 8 core/themes/bartik/bartik.theme \bartik_preprocess_block()
- 9 core/themes/bartik/bartik.theme \bartik_preprocess_block()
- 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';
}
}