Theme and template preprocess functions override are not called when it is run under Batched export. Exporting data in single segment and live preview do not have problem.

To reproduce:
- create a data export views, select CSV
- create a custom module or theme to override the template_preprocess_views_data_export(), like appending a value
- works in live preview and single segment export
- do not works with batched export

Comments

steven jones’s picture

Status: Active » Closed (duplicate)

I think this would be because the batch system sadly doesn't use the same theme that your frontend uses. This is a Drupal core bug: #539022: Batch API should use the current theme to run the batches and should get resolved over there, sorry!