I noticed that the 'comment settings' radio buttons ('#type' => 'radios') were not respecting their default value settings in my content types.
I have several module created custom content types, as well as the normal 'Page' and 'Book' content types in this D6 installation, and all of my custom content type's node forms are appearing with apparently random values for their default values.
Repeated loads of the same node form shows different default values for 'comment settings' every time. Looking at the $form arrays for my content types and comparing them against the $form array for a Page content type I only saw one difference: the use of the '#parent' element; I added to my logic (as shown below) but it makes no difference.
I noticed this while trying to create a 'radios' form element for a non-node creation form. Here's some logic I'm using that should give me a consistent default value, but does not:
$form['radios-test'] = array( '#type' => 'radios', '#parents' => array('radios-test'), '#title' => '', '#default_value' => 0, '#options' => array(t('first'), t('second'), t('third')), '#description' => 'explainer text goes here', );
What am I missing here?