[development] Overriding theme function in module for specific case

Steve Edwards killshot91 at comcast.net
Fri Dec 11 18:32:55 UTC 2009


I did exactly that:

$form['#theme'] = 'my_theme_function';

referring to the theme function in my module, but it doesn't take effect.

Steve

On Dec 9, 2009, at 2:17 PM, Nancy Wichmann wrote:

> Steve Edwards wrote:
>> embeds the ... form, I need to override the theme function for that
>> form ... only when I'm embedding it
> How about using hook_form_alter to add an additional field that the theme
> function can recognize?
> 
> Nancy E. Wichmann, PMP 
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King,
> Jr.
> 



More information about the development mailing list