function views_flipped_table_plugin_style_flipped_table::options_form in Views Flipped Table 7
Render the given style.
Overrides views_plugin_style_table::options_form
File
- ./
views_flipped_table_plugin_style_flipped_table.inc, line 26 - Contains the flipped table style plugin.
Class
- views_flipped_table_plugin_style_flipped_table
- Style plugin to render each item as a column in a table.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['flipped_table_header_first_field'] = array(
'#type' => 'checkbox',
'#title' => t("Show the first field as the table header"),
'#default_value' => $this->options['flipped_table_header_first_field'],
'#description' => t("Outputs the flipped table's row for the first field inside a table header element."),
);
$form['column_class_special'] = array(
'#title' => t('Add striping (odd/even), first/last column classes'),
'#description' => t('Add css classes to the first and last column, as well as odd/even classes for striping.'),
'#type' => 'checkbox',
'#default_value' => $this->options['column_class_special'],
);
// Rename "Row class" to "Column class"
$form['row_class']['#title'] = t('Column class');
$form['row_class']['#description'] = t('The class to provide on each column. You may use field tokens from as per the "Replacement patterns" used in "Rewrite the output of this field" for all fields.');
}