Closed (works as designed)
Project:
MultiBlock
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2008 at 00:43 UTC
Updated:
17 Mar 2015 at 15:21 UTC
Jump to comment: Most recent
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