Please. Hold on for a second. (was Re: [development] proposal for theming nodes)

Adrian Rossouw adrian at bryght.com
Thu Dec 15 12:17:44 UTC 2005


On 15 Dec 2005, at 1:35 PM, vlado wrote:

> Me being a dummy, just to verify I understand this right
>
>> $node->extras['module_something'] = array('#type' => 'form_box,
>> '#value' => $module->something, '#default_value' => 'lorem ipsum
>> ferrets and mounties and bubbles and things');
>
>> <?php form_render($extras['module_something'); ?>
>
> The key to this is the #type - if I want to provide some custom,
> non-form types, can I use #vlados_secret_passion ?

You can extend this however you want.


> theme_vlados_secret_passion($form) - not nessesarily theming a form  
> element,
> just a theme function

form elements are just theme functions.

--
Adrian Rossouw
Drupal developer and Bryght Guy
http://drupal.org | http://bryght.com




More information about the development mailing list