function slick_plugin_style_slick::options_form in Slick Carousel 7
Provide a form to edit options for this plugin.
Overrides views_plugin_style::options_form
File
- ./
slick_plugin_style_slick.inc, line 29 - Plugin for the Slick style.
Class
- slick_plugin_style_slick
- Style plugin for the slick carousel.
Code
function options_form(&$form, &$form_state) {
// Include ctools dependent support
ctools_include('dependent');
parent::options_form($form, $form_state);
// Build slick options as form elements.
$options = slick_get_options();
$form['slick_settings'] = array(
'#title' => t('Settings'),
'#type' => 'fieldset',
'#collapsible' => FALSE,
);
foreach ($options as $name => $values) {
$form['slick_settings'][$name] = array(
'#title' => $values['title'],
'#description' => $values['description'],
'#type' => $values['type'] == 'boolean' ? 'checkbox' : 'textfield',
'#default_value' => $this->options['slick_settings'][$name],
);
}
}