DrupalBin
Submit Code
About
Recent Posts
float?
2 hours 10 min
ago
views handler
5 hours 40 min
ago
Code
5 hours 56 min
ago
Code
5 hours 57 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for the multiple select #default_value
View
Download
Fix
December 11, 2007 - 5:24am — Anonymous
$form
[
'mylist'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Select From List'
)
,
'#options'
=>
array
(
0
=>
'A'
,
1
=>
'B'
,
2
=>
'C'
,
3
=>
'D'
,
)
,
'#multiple'
=>
true
,
'#size'
=>
3
,
'#default_value'
=>
array
(
1
,
2
)
,
)
;
#default_value
fapi
multiple=true
select