[support] Betterselect module warning
Kamal Palei
palei.kamal at gmail.com
Sun Aug 26 10:13:01 UTC 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120826/c6189dd8/attachment.html
More information about the support
mailing list