function ctools_stylizer_border_selector_form
Border selector form
File
-
includes/
stylizer.inc, line 1425
Code
function ctools_stylizer_border_selector_form(&$form, &$form_state, $label, $settings) {
// Family
$form['#prefix'] = '<div class="ctools-stylizer-spacing-form clearfix">';
$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'),
),
);
}