[drupal-devel] Theme function for outputting block links

Stefan Nagtegaal drupal-devel at frontaal-online.com
Wed Jan 19 10:42:09 UTC 2005

Tim Altman schreef:

> On Tue, 18 Jan 2005 21:47:58 +0100, Steven Wittens <steven at acko.net> 
> wrote:
>>>     Is there a function to theme links specifically for blocks?
>> There is none, but depending on you want, the simple CSS selector  
>> ".block a" (and variations on it) might be all you need.
>     What I'm thinking is probably more along the lines of a new hook, 
> rather  than theming.  So, we'd have hook_block_links (or extend 
> hook_links to  have a binary block parameter), which would allow all 
> modules to add links  to specific blocks.  Then, those links would be 
> passed to theme_links,  which would do its work.
>     I think this is more than a CSS issue, as most links should be 
> wrapped in  some block level element.  Weblink.module is currently 
> inserting its own  HTML to do this.
>     Thoughts?
-1 on this..
We output a unique id for each block, which helps us to theme the 
various blocks in a unique way..


More information about the drupal-devel mailing list