26 Aug
2012
26 Aug
'12
12:13 p.m.
Hi All I am using betterselect module. I have a custom form, part of code looks as below. $locations_arr = array( '0' => t('-Select-'), '1' => t('Anywhere in India'), '2' => t('Anywhere in North India'), '3' => t('Anywhere in South India'),); $form['name']['prefloc'] = array( '#type' => 'select', '#multiple' => TRUE, '#title' => t('Preferred Work Location'), '#options' => locations_arr, ); When I access the form page, I get warning "warning: Invalid argument supplied for foreach() in C:\http\wamp\www\netcloudjobs\sites\all\modules\betterselect\betterselect.module on line 104.". Please let me know, where I am wrong and how to fix this issue. Thanks Kamal NECS, Bangalore