Hi all
I a am writing 5.x module (to handle past events )
I have a problem with checkbox values - the value are not saved after form is saved
in the settings form i have a radio and a few checkboxs , the radio value is saved but the checkboxes value stay as there default value
here is the code
function past_events_admin_settings(){
$form = array();
$form['past_events_action'] = array(
'#type' => 'radios',
'#title' => t('Past Events Action to take'),
'#default_value' => variable_get('past_events_action', 'Manage'),
'#options' => array('manage' => t('manage by the settings below'), 'delete' => t('Delete Event'))
);
$form['past_events_manage_options'] = array(
'#type' => 'fieldset',
'#title' => t('Manage Options'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['past_events_manage_options'] ['unsticky']= array(
'#type' => 'checkbox',
'#title' => t('UnSticky event'),
'#default_value' => variable_get('past_events_unsticky',0),
);
$form['past_events_manage_options'] ['unpublish']= array(
'#type' => 'checkbox',
'#title' => t('UnPublish event'),
'#default_value' => variable_get('past_events_unpublish',0),
);
$form['past_events_manage_options'] ['unpromote']= array(
'#type' => 'checkbox',
'#title' => t('UnPromote event'),