Closed (fixed)
Project:
Block Theme
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2009 at 16:56 UTC
Updated:
23 Nov 2010 at 01:40 UTC
Hi, I have the need to access the list of themes that are defined for blocktheme to integrate it with another module.
What I want is to be able to select which of the blockthemes to use when rendering a custom block. I am not declaring these blocks with hook_block so they can´t be configured with the admin interface.
I have found that the list of themes is generated in the hook_form_alter, which is impossible to reuse for another modules.
I have separated the part of creating the list of blockthemes into a separate function to be able to use it and I have a patch for this.
I hope this is commited as it´s very useful and does not affect the functionality.
thanks!!
| Comment | File | Size | Author |
|---|---|---|---|
| blocktheme-getblockthemes_function.patch | 629 bytes | heronog |
Comments
Comment #1
heronog commentedHi, I forgot to post the way I intend to use it.
Whith this patch it is possible to get all defined blockthemes with
this variable can used to populate the options of a select list with Forms API like this
Hope this makes it more clear what my intentions are. As I said above, this does not affect functionality
Comment #2
heronog commentedComment #3
amateescu commentedFixed in: http://drupal.org/cvs?commit=448216