So I've got this form:
$form['color'] = array( '#type' => 'select', '#title' => t('Kleur'), '#options' => array( 0 => t('Wit'), 1 => t('Geel'), 2 => t('Groen'), 3 => t('Rood'), ), '#default_value' => 'Rood', );
As expected, this doesn't currently set the default value to 'Rood'. How would I get it so that the default value can be accessed by it's value?
Note that this example shows the string 'Rood', but in practice it would be a variable string that is pulled from the database.
Thanks in advance!