You are here

function template_preprocess_views_data_export_xml_header in Views data export 6.3

Same name and namespace in other branches
  1. 6 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_header()
  2. 6.2 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_header()
  3. 7.4 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_header()
  4. 7 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_header()
  5. 7.3 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_header()

Preprocess xml output template.

File

theme/views_data_export.theme.inc, line 344
Theme related functions for processing our output style plugins.

Code

function template_preprocess_views_data_export_xml_header(&$vars) {

  // Compute the root XML node, using the base table, and appending an 's' if needed.
  $root_node = $vars['view']->base_table;
  if (rtrim($root_node, 's') == $root_node) {
    $root_node .= 's';
  }
  $vars['root_node'] = _views_data_export_xml_tag_clean($root_node);
}