You are here

function views_data_export_view_retrieve in Views data export 7.4

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

Retrieve a view from the object cache.

2 calls to views_data_export_view_retrieve()
_drush_views_data_export_batch_finished in ./views_data_export.drush.inc
Get's called at the end of the drush batch process that generated our export
_views_data_export_batch_process in ./views_data_export.module
Batch API callback. Handles all batching operations by executing the appropriate view.

File

./views_data_export.module, line 251
Provides the ability to export to specific

Code

function views_data_export_view_retrieve($export_id) {
  views_include('view');
  $data = db_query("SELECT * FROM {views_data_export_object_cache} WHERE eid = :eid", array(
    ':eid' => $export_id,
  ))
    ->fetch();
  if ($data) {
    $view = unserialize($data->data);
  }
  return $view;
}