I want to create a configurable select list in forms.To achieve this what I did is I have created a text area, in that I will enter values like:
So, in form select options I have to use these values in a dropdown list. How can I achieve that. I am getting this text area data in form like below.Here I am getting data, but not displaying in the options.
$entityoptions = variable_get('entitydropdown');
I am getting the values as it is, but am not getting how can I assign these values to
#options. I did like below but its not displaying the values.
'#options' => $entityoptions,
Please help me to identify, where I am doing wrong. Thanks in advance.