presently, any calls to drupal_set_html_head() and friends from module block code are not honoured by chameleon or marvin.

this is because the calls to theme_blocks() come after the call to drupal_get_html_head().

the attached patch changes the order of these calls so that modules that need code in the head of the page to make there blocks work (eg, the chatroom module has blocks that are updated in real time via ajax, and so include a js file in the head if they are active).

cheers
justin

CommentFileSizeAuthor
chameleon_allow_blocks_to_set_head.patch.txt1.47 KBAnonymous (not verified)

Comments

Anonymous’s picture

is anyone willing to look at this? its a simple patch.

dmitrig01’s picture

Version: x.y.z » 6.x-dev
Status: Needs review » Needs work

like the idea, but it's do for a re-roll

Anonymous’s picture

Status: Needs work » Fixed

i had a look at the current code to update the patch only to find its been incorporated already, so this issue can die now.

Anonymous’s picture

Status: Fixed » Closed (fixed)