I want a type switch to change value in css class but type switch does not support custom values then 1 and 0? how to do it?
'input' => array(
'type' => 'switch',
'label' => $this->l('backgrounds'),
'name' => 'test',
'options' => array(
'query' => $test,
'id' => 'id_option',
'name' => 'name'
)
)
),
$test = array(
array(
'id_option' => '#header {background: #ffffff;}',
'name' => $this->l('white bg')
),
array(
'id_option' => '#header {background: #333333;}',
'name' => $this->l('dark bg')
),
);