How can I specify a default value and hide this checkbox ?
[states] => Array
(
[#type] => checkboxes
[#title] => Status
[#options] => Array
(
[active] => Active users
[inactive] => Inactive users
)
[#description] => Subscriptions matching the selected states will be exported.
[#required] => 1
)
I've tried
$form['states']['#default_value'] = 'active';
but it gives me an error.. thanks