function page_manager_get_wizard_cache

Get the cached changes to a given wizard.

Return value

A $cache object or a clean cache object if none could be loaded.

1 call to page_manager_get_wizard_cache()
page_manager_page_wizard in includes/page-wizard.inc
Menu callback for the page wizard.

File

includes/page-wizard.inc, line 38

Code

function page_manager_get_wizard_cache($plugin) {
    if (is_string($plugin)) {
        $plugin = page_manager_get_page_wizard($plugin);
    }
    if (empty($plugin)) {
        return;
    }
    ctools_include('object-cache');
    // Since contexts might be cache, include this so they load.
    ctools_include('context');
    $cache = ctools_object_cache_get('page_manager_page_wizard', $plugin['name']);
    if (!$cache) {
        $cache = page_manager_make_wizard_cache($plugin);
    }
    return $cache;
}