public function views_plugin_style_grid::option_definition in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_style_grid.inc \views_plugin_style_grid::option_definition()
- 6.2 plugins/views_plugin_style_grid.inc \views_plugin_style_grid::option_definition()
Set default options.
Overrides views_plugin_style::option_definition
File
- plugins/
views_plugin_style_grid.inc, line 18 - Definition of views_plugin_style_grid.
Class
- views_plugin_style_grid
- Style plugin to render each item in a grid cell.
Code
public function option_definition() {
$options = parent::option_definition();
$options['columns'] = array(
'default' => '4',
);
$options['alignment'] = array(
'default' => 'horizontal',
);
$options['fill_single_line'] = array(
'default' => TRUE,
'bool' => TRUE,
);
$options['summary'] = array(
'default' => '',
);
$options['caption'] = array(
'default' => '',
);
return $options;
}