Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$title has been removed from the block template variables in Drupal 7. However, block.tpl.php in this theme is still using that variable. That variable needs to be changed to $block->subject in order to display the title.
Comment | File | Size | Author |
---|---|---|---|
#1 | block_tpl_php_title-1210182-1.patch | 632 bytes | paulmckibben |
Comments
Comment #1
paulmckibbenPatch attached.
Comment #2
rovoI just changed lines 11-13 in block.tpl.php to:
Not sure this was the best fix...
Comment #3
jensimmons CreditAttribution: jensimmons commentedFunny, it was right in block--views.tpl.php and block--menu.tpl.php, but I screwed it up in block.tpl.php.
Fixed. Thanks!
Comment #4
jensimmons CreditAttribution: jensimmons commentedAnd yes, rob_dean, what you did is the fix. So your copy matches the new code in HTML5 Base.
Comment #5
rovoOh good, awesome!
Things are looking good for this Base!