Change the 'Other' option
function
example_elements_form
(
)
{
$form
=
array
(
)
;
$options
=
array
(
'one'
=
>
t
(
'First Option'
)
,
'two'
=
>
t
(
'Second Option'
)
,
)
;
$form
[
'test'
]
=
array
(
'#type'
=
>
'comboselect'
,
'#title'
=
>
t
(
'Example'
)
,
'#required'
=
>
TRUE
,
'#default_options'
=
>
$options
,
'#other'
=
>
t
(
'None of the above, but'
)
,
)
;
$form
[
'submit'
]
=
array
(
'#type'
=
>
'submit'
,
'#value'
=
>
t
(
'Submit'
)
,
)
;
return
$form
;
}
Attachment
Size
comboselect_other_wording.JPG
15.45 KB