You are here

function sheetnode_phpexcel_plugin_style::options_form in Sheetnode 7

Same name and namespace in other branches
  1. 5 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::options_form()
  2. 6 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::options_form()
  3. 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::options_form()

Provide a form to edit options for this plugin.

Overrides sheetnode_feed_plugin_style::options_form

File

modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc, line 18
Views plugin style to run through sheetnode_phpexcel.

Class

sheetnode_phpexcel_plugin_style
@file Views plugin style to run through sheetnode_phpexcel.

Code

function options_form(&$form, &$form_values) {
  parent::options_form($form, $form_values);
  foreach (sheetnode_phpexcel_get_plugins('output') as $format => $plugin) {
    $options[$format] = $plugin['short-name'];
  }
  $form['format'] = array(
    '#type' => 'radios',
    '#title' => t('Export as'),
    '#options' => $options,
    '#default_value' => $this->options['format'],
  );
}