You are here

function dragndrop_upload_cache_set in Drag & Drop Upload 7

Set DnD settings cache.

Parameters

string $id: Hash-id of the dropzone.

array $settings: Settings of the dropzone.

1 call to dragndrop_upload_cache_set()
dragndrop_upload_dropzone_add in ./dragndrop_upload.module
Add a dropzone.

File

./dragndrop_upload.module, line 161
Provides API for drag & drop upload features.

Code

function dragndrop_upload_cache_set($id, $settings) {

  // Cache lifetime is 6 hours.
  $expire = 21600;
  cache_set('dragndrop_upload:' . $id, $settings, 'cache', REQUEST_TIME + $expire);
}