You are here

function _panels_skinr_save_and_clear_cache in Skinr 6

Same name and namespace in other branches
  1. 6.2 modules/panels.skinr.inc \_panels_skinr_save_and_clear_cache()

Related topics

1 call to _panels_skinr_save_and_clear_cache()
panels_skinr_submit_handler_display in modules/panels.skinr.inc
@todo remove values from skinr if a display is deleted

File

modules/panels.skinr.inc, line 326
Provide skinr handling for panels.module.

Code

function _panels_skinr_save_and_clear_cache($did) {
  if ($skinr_data = ctools_object_cache_get('skinr', $did, TRUE)) {
    foreach ($skinr_data as $theme_name => $theme) {
      foreach ($theme as $key => $value) {
        skinr_set($theme_name, 'panels', $key, $value);
      }
    }
    ctools_object_cache_clear('skinr', $did);
  }
}