function views_data_export_plugin_style_export_xml::options_submit in Views data export 6.2
Same name and namespace in other branches
- 7.3 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml::options_submit()
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
_state
Parameters
$form:
File
- plugins/
views_data_export_plugin_style_export_xml.inc, line 141 - Plugin include file for export style plugin.
Class
- views_data_export_plugin_style_export_xml
- Generalized style plugin for export plugins.
Code
function options_submit(&$form, &$form_state) {
if (isset($form_state['values']['style_options']['cdata_wrapper'])) {
// Remove any options values set to 0
$form_state['values']['style_options']['cdata_wrapper'] = array_filter($form_state['values']['style_options']['cdata_wrapper']);
}
}