My fieldsets are not rendered collapsible and without title if Title is 0 or '0'!
<?php
//fieldsets are missing label (and therefore are not collapsible) if title is 0 or '0'.
function test_menu() {
$items = array();
$items['test'] = array(
'title' => 'test',
'page callback' => 'drupal_get_form',
'page arguments' => array('test_form'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
function test_form($form, &$form_state) {
$form['nuller'] = array(
'0' => array(
'#type' => 'fieldset',
'#title' => t(1),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#tree' => FALSE,
'symbol' => array(
'symboltitle' => array(
'#type' => 'textfield',
'#title' => t('Title'),
),
),
),
'1' => array(
'#type' => 'fieldset',
'#title' => t('0'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#tree' => FALSE,
'symbol' => array(
'symboltitle' => array(