function ctools_stylizer_border_selector_form in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/stylizer.inc \ctools_stylizer_border_selector_form()
Border selector form
File
- includes/
stylizer.inc, line 1422 - Create customized CSS and images from palettes created by user input.
Code
function ctools_stylizer_border_selector_form(&$form, &$form_state, $label, $settings) {
// Family
$form['#prefix'] = '<div class="ctools-stylizer-spacing-form clear-block">';
$form['#type'] = 'fieldset';
$form['#title'] = $label;
$form['#suffix'] = '</div>';
$form['#tree'] = TRUE;
$form['thickness'] = array(
'#title' => t('Thickness'),
'#type' => 'select',
'#default_value' => isset($settings['thickness']) ? $settings['thickness'] : '',
'#options' => array(
'' => '',
"none" => t('None'),
"1px" => '1px',
"2px" => '2px',
"3px" => '3px',
"4px" => '4px',
"5px" => '5px',
),
);
$form['style'] = array(
'#title' => t('style'),
'#type' => 'select',
'#default_value' => isset($settings['style']) ? $settings['style'] : '',
'#options' => array(
'' => '',
'solid' => t('Solid'),
'dotted' => t('Dotted'),
'dashed' => t('Dashed'),
'double' => t('Double'),
'groove' => t('Groove'),
'ridge' => t('Ridge'),
'inset' => t('Inset'),
'outset' => t('Outset'),
),
);
}