You are here

function views_data_export_view_clear in Views data export 6.3

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

Clear a view from the object cache.

Parameters

$export_id: An export ID or an array of export IDs to clear from the object cache.

3 calls to views_data_export_view_clear()
views_data_export_clear in ./views_data_export.module
Remove the information about an export.
views_data_export_garbage_collect in ./views_data_export.module
Removes any temporary index tables that have been left behind. This is caused by batch processes which are started but never finished.
views_data_export_view_store in ./views_data_export.module
Store a view in the object cache.

File

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

Code

function views_data_export_view_clear($export_id) {
  if (is_array($export_id)) {
    db_query("DELETE FROM {views_data_export_object_cache} WHERE eid IN (" . db_placeholders($export_id) . ")", $export_id);
  }
  else {
    db_query("DELETE FROM {views_data_export_object_cache} WHERE eid = '%s'", $export_id);
  }
}