Just a mistype in the number_field_settings function.
$form['min'] = array(
'#type' => 'textfield',
'#title' => t('Minimum'),
'#default_value' => $field['min'] ? $field['min'] : '',
);
$form['max'] = array(
'#type' => 'textfield',
'#title' => t('Maximum'),
'#default_value' => $field['min'] ? $field['min'] : '',
);
Should be replaced with
$form['min'] = array(
'#type' => 'textfield',
'#title' => t('Minimum'),
'#default_value' => $field['min'] ? $field['min'] : '',
);
$form['max'] = array(
'#type' => 'textfield',
'#title' => t('Maximum'),
'#default_value' => $field['max'] ? $field['max'] : '',
);
Yes, I also love copypasting when programming :)
Comments
Comment #1
ultraBoy commented...I don't have access to CVS
Comment #2
RayZ commentedPatch attached.
Comment #3
jonbob commentedApplied. Thanks.
Comment #4
(not verified) commented