I got a CCK field to select a currency; this field is not required, and the dropdown displays '-None-'. I want to change that.
There's the option to let PHP-Code return the value. It says:
return array(
0 => array('value' => 'value for value'),
// You'll usually want to stop here. Provide more values
// if you want your 'default value' to be multi-valued:
1 => array('value' => 'value for value'),
2 => ...
);
So I tried with:
return array(
0 => array('value' => 'my_text'),
);
Drupal now tells me:
The PHP code for 'default value' returned Array ( [0] => Array ( [value] => my_text ) ) , which is invalid.
I got a list of 4 currencies to choose from, which are the allowed values in my dropdown. What do I have to do to replace '-None-' with my own default?