You are here

function views_data_export_plugin_style_export_xml::options_form in Views data export 7

Same name and namespace in other branches
  1. 6.3 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml::options_form()
  2. 6 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml::options_form()
  3. 6.2 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml::options_form()
  4. 7.3 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml::options_form()

Options form mini callback.

Parameters

$form: Form array to add additional fields to.

$form_state: State of the form.

Return value

None.

Overrides views_data_export_plugin_style_export::options_form

File

plugins/views_data_export_plugin_style_export_xml.inc, line 45
Plugin include file for export style plugin.

Class

views_data_export_plugin_style_export_xml
Generalized style plugin for export plugins.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['transform'] = array(
    '#type' => 'checkbox',
    '#title' => t('Transform spaces'),
    '#default_value' => $this->options['transform'],
    '#description' => t('Transform spaces to valid XML in field labels (spaces create invalid XML markup). Note that invalid XML tag characters will always be converted.'),
  );
  $form['transform_type'] = array(
    '#type' => 'select',
    '#title' => t('Transform type'),
    '#default_value' => $this->options['transform_type'],
    '#options' => array(
      'dash' => t('Dash'),
      'underline' => t('Underline'),
      'camel' => t('camelCase'),
      'pascal' => t('PascalCase'),
    ),
    '#process' => array(
      'ctools_dependent_process',
    ),
    '#dependency' => array(
      'edit-style-options-transform' => array(
        TRUE,
      ),
    ),
  );
}