You are here

function template_preprocess_views_data_export_xml_footer 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_footer()
  2. 6.2 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_footer()
  3. 7.4 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_footer()
  4. 7 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_footer()
  5. 7.3 theme/views_data_export.theme.inc \template_preprocess_views_data_export_xml_footer()

Preprocess xml output template.

File

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

Code

function template_preprocess_views_data_export_xml_footer(&$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);
}