You are here

function views_data_export_plugin_style_export::option_definition in Views data export 7.4

Same name and namespace in other branches
  1. 6.3 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::option_definition()
  2. 6 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::option_definition()
  3. 6.2 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::option_definition()
  4. 7 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::option_definition()
  5. 7.3 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::option_definition()

Set options fields and default values.

Return value

An array of options information.

Overrides views_plugin_style::option_definition

File

plugins/views_data_export_plugin_style_export.inc, line 22
Plugin include file for export style plugin.

Class

views_data_export_plugin_style_export
Generalized style plugin for export plugins.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['attach_text'] = array(
    'default' => $this->definition['export feed text'],
    'translatable' => TRUE,
  );
  $options['provide_file'] = array(
    'default' => FALSE,
    'translatable' => FALSE,
  );
  $options['filename'] = array(
    'default' => $this->definition['export feed file'],
    'translatable' => FALSE,
  );
  $options['parent_sort'] = array(
    'default' => FALSE,
    'translatable' => FALSE,
  );
  $options['exporter_options'] = array(
    'default' => array(),
    'translatable' => FALSE,
  );
  return $options;
}