Skip to content
Snippets Groups Projects
Commit e95d56f7 authored by Mark Halliwell's avatar Mark Halliwell
Browse files

Issue #2329431 by zmove: bootstrap_preprocess_block() should check if title is...

Issue #2329431 by zmove: bootstrap_preprocess_block() should check if title is already set before overriding it
parent 0cb38d79
No related branches found
Tags 4.0.0
No related merge requests found
......@@ -32,5 +32,8 @@ function bootstrap_preprocess_block(&$variables) {
*/
function bootstrap_process_block(&$variables) {
// Drupal 7 should use a $title variable instead of $block->subject.
$variables['title'] = $variables['block']->subject;
// Don't override an existing "title" variable, some modules may already it.
if (!isset($variables['title'])) {
$variables['title'] = $variables['block']->subject;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment