[development] implementing #format

Earnie Boyd earnie at users.sourceforge.net
Tue Feb 19 13:12:35 UTC 2008

Quoting Gábor Hojtsy <gabor at hojtsy.hu>:

> Anything obvious I am missing or total misdirection I am taking?
> Better ideas or tips to get this done easier? Does someone see where
> I'll stop and freeze without a way forward (because certain APIs will
> not allow me to proceed without major refactoring)? :) If #format a
> good idea for input format specification on forms, or should I use a
> better name? (I would not like to get in conflict with #formatter and
> friends).

Excuse my ignorance in this part of the Drupal code but ...
How about adding "${fieldtype}_format" functions to the theme engine 
that look for hooked "${formname}_${fieldname}_format" and/or 
"${formname}_{$fieldtype}_format" else apply a default format for that 
field type?

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/

More information about the development mailing list