[development] Re: Rapid Theme Development

Neil Drumm drumm at delocalizedham.com
Thu Dec 15 02:47:30 UTC 2005


Ken Rickard wrote:
> The problem is that modules (including core modules like profile.module) 
> call this function for both form input _and_ form output.  From a 
> design/theme p.o.v., those are two distinct things and should be treated 
> as such.

I agree, the form API should never be used for output. Unfortunately 
there isn't a good themeable function in core for label/value data.

All of my sematic-HTML-preaching friends recomend a definition list [1] 
for this.

We would need a basic style in drupal.css. I suggest this be making <dt> 
bold and <dd> unindented to match the visual styling of theme_form_item().

1. http://www.w3.org/TR/html4/struct/lists.html#h-10.3

-- 
Neil Drumm
http://delocalizedham.com/


More information about the development mailing list