[drupal-devel] Theme function for outputting block links

Tim Altman web at timaltman.com
Wed Jan 19 10:24:44 UTC 2005


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?

-- 
Tim Altman




More information about the drupal-devel mailing list