[drupal-devel] Rewriting use of forms in Drupal

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Fri Jun 3 15:30:31 UTC 2005



On Fri, 3 Jun 2005, vlado wrote:

>
> > 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?

Do we have nested groups? Wasn't aware of this.

I guess a group could be member of another group:

$elements['group1'] = array('type' => 'group', 'group' => 'group2',
'weight' => 1, 'title' => t('some title here'));

Cheers,
	Gerhard



More information about the drupal-devel mailing list