You are here

function ctools_cache_export_ui_cache_get in Chaos Tool Suite (ctools) 7

1 string reference to 'ctools_cache_export_ui_cache_get'
export_ui.inc in plugins/cache/export_ui.inc

File

plugins/cache/export_ui.inc, line 19

Code

function ctools_cache_export_ui_cache_get($plugin_name, $key) {
  ctools_include('export-ui');
  $plugin = ctools_get_export_ui($plugin_name);
  $handler = ctools_export_ui_get_handler($plugin);
  if ($handler) {
    $item = $handler
      ->edit_cache_get($key);
    if (!$item) {
      $item = ctools_export_crud_load($handler->plugin['schema'], $key);
    }
    return $item;
  }
}