[drupal-devel] Rewriting use of forms in Drupal

vlado vlado at dikini.net
Fri Jun 3 15:27:36 UTC 2005


> I'd rewrite the last part to
> 
>  $elements['group1'] = array('type' => 'group', 'weight' => 1, 'title' =>
> t('some title here'));

> And then for elements:
>       $elements['element1'] =  array('type'=>'textfield',
>  'title'=> t('element 1'), 'value' => $_POST['edit']['element1'],
>   'default' => $obj->element1, 'weight' => 1, 'group' => 'group1');
> 
How would you handle nested groups?




More information about the drupal-devel mailing list