Sorry for the newbie questin but Im new to druapl and to php but Im having the toughest time trying to figure out where to add the code to make the blocks multiblock enabled. Can you please give me more guidance as to what file or files need to be modified
Comments
Comment #1
ocarina commentedThe readme file included with the module explains how to do it. But here's how and some very basic example code:
Implement hook_block.
Add an if statement to handle the op 'mb_enabled':
When $op is 'view', 'configure', or 'save' use the multibox delta in $edit to effect the right block instance.
Now that your hook_block is multiblock ready you can start cloning it on the admin/build/block/instances page.
When I tried multiblock myself it wasn't saving different settings for each block. I found some bug fixing patches for multiblock that aren't part of the download on the main page yet. Replacing multiblock_add_form_submit (in multiblock.module) with this seems to fix the problem if you ever have it:
Comment #2
andrewlevine commentedThanks for taking the time to explain this ocarina, I really appreciate it.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
moosedog commentedwhere do you add the if statement?
Comment #5
knalstaaf commentedWhere do we have to "implement hook_block"? In the template.php?
Comment #6
intrafusionIn a custom module