By timatlee on
Hello
I am working on a module that allows a user to change the order and region of the blocks being displayed (in addition to the enable/disable functionality that the block module already provides).
I am having difficulty finding an appropriate hook to override to achieve this - I've tried it in phptemplate_preprocess, phptemplate_preprocess_block and looked at trying to change it through hook_init, hook_boot, etc.
I think I'm looking at overriding theme_blocks and re-writing block_list to achieve this.
Is there a more suitable hook that I can use to achieve this?
Thanks,
Tim
Comments
I'm not sure there's a hook
I'm not sure there's a hook to do that, you might be better off manipulating the {blocks} table directly and updating the 'weight' column for individual blocks
Hmm, ok. I'm trying to set
Hmm, ok. I'm trying to set it up so that each user can configure the block weight and region to their preference. If there's no suitable hook, it looks like up for adapting list_blocks
Thanks for the prompt reply!
Tim
I am also looking for a proper hook to achieve this
I am also looking for a proper hook to achieve this, can anybody help me ?