15 Dec
2005
15 Dec
'05
1:17 p.m.
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