views_bootstrap_thumbnail_plugin_style.inc in Views Bootstrap 7
Same filename and directory in other branches
Definition of views_bootstrap_plugin_style.
File
plugins/thumbnail/views_bootstrap_thumbnail_plugin_style.incView source
<?php
/**
* @file
* Definition of views_bootstrap_plugin_style.
*/
/**
* Class to define a style plugin handler.
*/
class ViewsBootstrapThumbnailPluginStyle extends views_plugin_style {
/**
* Definition.
*/
public function option_definition() {
$options = parent::option_definition();
$options['column_type'] = array(
'default' => 4,
);
return $options;
}
/**
* Form.
*/
function options_form(&$form, &$form_state) {
//@TODO: Grouping doesn't work here.
//parent::options_form($form, $form_state);
$form['column_type'] = array(
'#type' => 'select',
'#title' => t('Column type'),
'#options' => drupal_map_assoc(range(1, 12)),
'#default_value' => $this->options['column_type'],
'#description' => t('The default Bootstrap grid system utilizes 12 columns'),
);
}
}
Classes
Name![]() |
Description |
---|---|
ViewsBootstrapThumbnailPluginStyle | Class to define a style plugin handler. |