You are here

function dragndrop_upload_cache_get in Drag & Drop Upload 7

Get DnD cached settings by id.

Parameters

string $id: Hash-id of the dropzone.

Return value

mixed Settings of the dropzone.

1 call to dragndrop_upload_cache_get()
dragndrop_upload_callback in ./dragndrop_upload.module
Default ajax callback for dropzones.

File

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

Code

function dragndrop_upload_cache_get($id) {
  if ($cached = cache_get('dragndrop_upload:' . $id)) {
    return $cached->data;
  }
}