function gathercontent_import_cache_get in GatherContent 7.3
Same name and namespace in other branches
- 7 gathercontent.module \gathercontent_import_cache_get()
Gets the current object from the cache, or default.
Parameters
int $id: Cache ID.
Return value
object Cache with stored stuff.
1 call to gathercontent_import_cache_get()
- gathercontent_import_form in ./
gathercontent.import.inc - Multistep form function.
File
- ./
gathercontent.import.inc, line 123
Code
function gathercontent_import_cache_get($id) {
ctools_include('object-cache');
$object = ctools_object_cache_get('gathercontent_import', $id);
if (!$object) {
// Create a default object.
$object = new stdClass();
}
return $object;
}