You are here

function views_bulk_operations_archive_action in Views Bulk Operations (VBO) 6

Same name and namespace in other branches
  1. 6.3 archive.action.inc \views_bulk_operations_archive_action()
  2. 7.3 actions/archive.action.inc \views_bulk_operations_archive_action()

File

actions/archive.action.inc, line 12

Code

function views_bulk_operations_archive_action($fids, $context) {

  // Iterate on files.
  $files = array();
  $placeholders = db_placeholders($fids);
  $f = db_query("SELECT * FROM {files} WHERE fid IN ({$placeholders})", $fids);
  while ($file = db_fetch_object($f)) {
    $files[] = $file;
  }
  views_bulk_operations_archive_action_do($files, $context);
}