function ctools_ajax_sample_cache_get
Get the current object from the cache, or default.
1 call to ctools_ajax_sample_cache_get()
- ctools_ajax_sample_animal in ctools_ajax_sample/
ctools_ajax_sample.module - A modal login callback.
File
-
ctools_ajax_sample/
ctools_ajax_sample.module, line 493
Code
function ctools_ajax_sample_cache_get($id) {
ctools_include('object-cache');
$object = ctools_object_cache_get('ctools_ajax_sample', $id);
if (!$object) {
// Create a default object.
$object = new stdClass();
$object->type = 'unknown';
$object->name = '';
}
return $object;
}