Révision f0456308
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/views_data_export/views_data_export.module | ||
---|---|---|
264 | 264 |
* An export ID or an array of export IDs to clear from the object cache. |
265 | 265 |
*/ |
266 | 266 |
function views_data_export_view_clear($export_id) { |
267 |
if (is_array($export_id)) { |
|
268 |
db_delete('views_data_export_object_cache') |
|
269 |
->condition('eid', $export_id, 'IN') |
|
270 |
->execute(); |
|
271 |
} |
|
272 |
else { |
|
273 |
db_delete('views_data_export_object_cache') |
|
267 |
db_delete('views_data_export_object_cache') |
|
274 | 268 |
->condition('eid', $export_id) |
275 | 269 |
->execute(); |
270 |
} |
|
271 |
|
|
272 |
/** |
|
273 |
* Implements hook_file_presave(). |
|
274 |
*/ |
|
275 |
function views_data_export_file_presave($file) { |
|
276 |
// Ensure temporary files really are temporary. |
|
277 |
// @see: https://drupal.org/node/2198399 |
|
278 |
if (strpos($file->filename, 'views_data_export') === 0) { |
|
279 |
// There is no FILE_STATUS_TEMPORARY. |
|
280 |
$file->status = 0; |
|
276 | 281 |
} |
277 | 282 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules