You are here

function layouter_cache_get in Layouter - WYSIWYG layout templates 7

Get the current object from the cache, or default.

1 call to layouter_cache_get()
layouter_choose_layout in includes/layouter.pages.inc
Callback for layouter/%ctools_js/% path.

File

includes/layouter.inc, line 80
Functions for layout processing.

Code

function layouter_cache_get($id) {
  ctools_include('object-cache');
  $object = ctools_object_cache_get('layouter', $id);
  if (!$object) {

    // Create a default object.
    $object = new stdClass();
    $object->type = 'unknown';
    $object->name = '';
  }
  return $object;
}