Closed (works as designed)
Project:
Insert Block
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2006 at 14:45 UTC
Updated:
7 Feb 2008 at 04:26 UTC
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
Comment #1
eaton commentedoverride 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.
Comment #2
pepeek commentedtheme_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.
Comment #3
mlsamuelson commentedThis 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.
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