function views_plugin_row_sgrid_style::options_form in Sortable Grid Views Plugin 7
Provide a form for setting options.
Overrides views_plugin_row::options_form
File
- ./
views_plugin_row_sgrid_style.inc, line 29 - views_plugin_row_sgrid_style.inc Views row style plugin for Sortable grid module
Class
- views_plugin_row_sgrid_style
- The basic 'fields' row plugin
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$options = $this->display->handler
->get_field_labels();
if (empty($this->options['inline'])) {
$this->options['inline'] = array();
}
$form['inline'] = array(
'#type' => 'checkboxes',
'#title' => t('Inline fields'),
'#options' => $options,
'#default_value' => $this->options['inline'],
'#description' => t('Inline fields will be displayed next to each other rather than one after another.'),
);
$form['hide_empty'] = array(
'#type' => 'checkbox',
'#title' => t('Hide empty fields'),
'#default_value' => $this->options['hide_empty'],
'#description' => t('Do not display fields, labels or markup for fields that are empty.'),
);
}