I have created a select list field in my Entity Form.
Select List : none||none and AM||AM and PM||PM
In my computed field, I want to know what did the user chose by using IF STATEMENT
example:
if($halfday == 'AM')
{
//action
}
I tried to use array_pop (example code :
$halfday = array_pop(field_get_items($entity_type,$entity,'field_halfday'));)
but it does not work for me. What PHP code should I use? Any suggestions?