I had put form fields in a table using the code from http://api.drupal.org/api/drupal/includes--form.inc/group/form_api/7, because I wanted to display 3 fields in the same line... but then when I finished the whole table was rendered out of the original fieldset...
How do I achieve to insert the whole table inside the fieldset?
Where is the mistake?
This is the hole code:
function antartica_form($form, &$form_state) {
$form['description'] = array(
'#type' => 'item',
'#title' => t('A form with a submit handler'),
);
$form['#prefix'] = "
";
$form['name'] = array(
'#type' => 'fieldset',
'#title' => t('Data Download'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['name']['station'] = array(
'#type' => 'select',
'#title' => t('Station'),
'#prefix' => '
',
'#suffix' => ' |
',
'#default_value' => 'TNV',
'#options' => array(
'TNV' => t('TNV station'),
),
'#description' => t(''),
);
$form['name']['channel'] = array(
'#type' => 'select',
'#title' => t('Channel'),
'#prefix' => '
',
'#suffix' => ' |
',
'#default_value' => 'LH',
'#options' => array(
'BH' => t('BH (20 sps)'),
'LH' => t('LH (1 sps)'),