You are here

function _drush_views_data_export_override_batch in Views data export 7.4

Same name and namespace in other branches
  1. 6.3 views_data_export.drush.inc \_drush_views_data_export_override_batch()
  2. 6 views_data_export.drush.inc \_drush_views_data_export_override_batch()
  3. 6.2 views_data_export.drush.inc \_drush_views_data_export_override_batch()
  4. 7 views_data_export.drush.inc \_drush_views_data_export_override_batch()
  5. 7.3 views_data_export.drush.inc \_drush_views_data_export_override_batch()

Helper function that indicates that we want to override the batch that the views_data_export view creates on it's initial time through.

Also provides a place to stash options that need to stay around until the end of the batch

2 calls to _drush_views_data_export_override_batch()
drush_views_data_export in ./views_data_export.drush.inc
Drush command callback to export a views data to a file.
views_data_export_views_data_export_batch_alter in ./views_data_export.drush.inc
Implementation of hook_views_data_export_batch_alter()

File

./views_data_export.drush.inc, line 209

Code

function _drush_views_data_export_override_batch($view = NULL, $display = NULL, $options = TRUE) {
  static $_views;
  if (isset($view)) {
    $_views[$view][$display] = $options;
  }
  return $_views;
}