Drupal calling a block programmatically, block title not displaying -


i tried calling block programmatically it's not displaying block title. added block "add block" page. has id of 53.

i have code in page.tpl.php or node.tpl.php:

<?php   $blocktest = (object) module_invoke('block', 'block', 'view', 53); print theme('block', $blocktest); ?>  

it show contents (body) of block, not block title (subject). ideas why?

this appears bug in drupal core, @ least in reading of http://drupal.org/node/162899 , potentially related issue @ http://drupal.org/node/521668 first 1 has proposed patch, it's bit outdated, , cause update script break. can change function in update.php after applying patch number higher current version is, might lot ask. then, couldn't work.

adding cross-reference comment @ http://drupal.org/node/26502#comment-3781716 asks same question.


Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -