function ViewsBootstrapThumbnailPluginStyle::options_form in Views Bootstrap 7.2
Same name and namespace in other branches
- 7.3 plugins/thumbnail/views_bootstrap_thumbnail_plugin_style.inc \ViewsBootstrapThumbnailPluginStyle::options_form()
- 7 plugins/thumbnail/views_bootstrap_thumbnail_plugin_style.inc \ViewsBootstrapThumbnailPluginStyle::options_form()
Form.
Overrides views_plugin_style::options_form
File
- plugins/
thumbnail/ views_bootstrap_thumbnail_plugin_style.inc, line 24 - Definition of views_bootstrap_plugin_style.
Class
- ViewsBootstrapThumbnailPluginStyle
- Class to define a style plugin handler.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['alignment'] = array(
'#type' => 'radios',
'#title' => t('Alignment'),
'#options' => array(
'horizontal' => t('Horizontal'),
'vertical' => t('Vertical'),
),
'#description' => t('Horizontal alignment will place items starting in the upper left and moving right.
Vertical alignment will place items starting in the upper left and moving down.'),
'#default_value' => $this->options['alignment'],
);
$options = array(
1,
2,
3,
4,
6,
12,
);
$form['columns'] = array(
'#type' => 'select',
'#title' => t('Number of columns'),
'#options' => array_combine($options, $options),
'#required' => TRUE,
'#default_value' => $this->options['columns'],
);
}