Hi, great module!
It would be nice if we can turn on a block title inside the expressions we embed in the node?
Something like?

[block:name of module=delta of block title=on/off]

Comments

eaton’s picture

Status: Active » Closed (works as designed)

override theme_insert_block_block($block) in your site's theme code -- the entire block, including its title, is sent to that function. By default the module only shows the content, but you can use the theme function to show title, content, and any other wrapper HTML that you need.

pepeek’s picture

Status: Closed (works as designed) » Active

theme_insert_block_block($block) receives $block as array retrieved by module_invoke($module, 'block', 'view', $delta) rather then block_box_get. Therefore one can not use theme_block($block) to theme the block the standard way.

Why do you use module_invoke($module, 'block', 'view', $delta) to obtain the $block instead of block_box_get? Security reasons?

How can one theme the inserted block using standard theme_block function?

There is also no way to obtain the block delta.

mlsamuelson’s picture

Status: Active » Closed (works as designed)

This is way old, predating my taking on the module, but I figure it never hurts to have perspective recorded. Of course, since I wasn't the creator, I can only speak from my POV.

theme_insert_block_block($block) receives $block as array retrieved by module_invoke($module, 'block', 'view', $delta) rather then block_box_get. Therefore one can not use theme_block($block) to theme the block the standard way.

This is by design. This module is only interested in the contents of blocks.

To obtain block deltas, hover over some of the links on the block admin page and you'll be able to figure out the module name and delta.

mlsamuelson