function views_data_export_plugin_style_export::options_form in Views data export 6
Same name and namespace in other branches
- 6.3 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::options_form()
- 6.2 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::options_form()
- 7.4 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::options_form()
- 7 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::options_form()
- 7.3 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::options_form()
Options form mini callback.
Parameters
$form: Form array to add additional fields to.
$form_state: State of the form.
Return value
None.
2 calls to views_data_export_plugin_style_export::options_form()
- views_data_export_plugin_style_export_csv::options_form in plugins/
views_data_export_plugin_style_export_csv.inc - Options form mini callback.
- views_data_export_plugin_style_export_xml::options_form in plugins/
views_data_export_plugin_style_export_xml.inc - Options form mini callback.
2 methods override views_data_export_plugin_style_export::options_form()
- views_data_export_plugin_style_export_csv::options_form in plugins/
views_data_export_plugin_style_export_csv.inc - Options form mini callback.
- views_data_export_plugin_style_export_xml::options_form in plugins/
views_data_export_plugin_style_export_xml.inc - Options form mini callback.
File
- plugins/
views_data_export_plugin_style_export.inc, line 52 - Plugin include file for export style plugin.
Class
- views_data_export_plugin_style_export
- Generalized style plugin for export plugins.
Code
function options_form(&$form, &$form_state) {
$form['attach_text'] = array(
'#type' => 'textfield',
'#title' => t('Attach text'),
'#default_value' => $this->options['attach_text'],
'#description' => t('This text is used in building the feed link. By default it is the "alt" text for the feed image.'),
);
$form['provide_file'] = array(
'#type' => 'checkbox',
'#title' => t('Provide as file'),
'#default_value' => $this->options['provide_file'],
'#description' => t('By deselecting this, the xml file will be provided as a feed instead of a file for download.'),
);
$form['filename'] = array(
'#type' => 'textfield',
'#title' => t('Filename'),
'#default_value' => $this->options['filename'],
'#description' => t('The filename that will be suggested to the browser for downloading purposes. %view will be replaced with the view name.'),
'#process' => array(
'views_process_dependency',
),
'#dependency' => array(
'edit-style-options-provide-file' => array(
TRUE,
),
),
);
$form['parent_sort'] = array(
'#type' => 'checkbox',
'#title' => t('Parent sort'),
'#default_value' => $this->options['parent_sort'],
'#description' => t('Try to apply any additional sorting from the attached display like table sorting to the exported feed.'),
);
}