You are here

function panels_edit_cache_break_lock in Panels 7.3

Same name and namespace in other branches
  1. 6.3 panels.module \panels_edit_cache_break_lock()

Method to allow modules to provide a mechanism to break locks.

1 call to panels_edit_cache_break_lock()
panels_renderer_ipe::ipe_test_lock in panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php
This is a generic lock test.

File

./panels.module, line 1781
Core functionality for the Panels engine.

Code

function panels_edit_cache_break_lock($cache) {
  if (empty($cache->locked)) {
    return;
  }
  $cache_key = $cache->display->cache_key;
  if (strpos($cache_key, ':') !== FALSE) {
    list($module, $argument) = explode(':', $cache_key, 2);
    if (function_exists($module . '_panels_cache_break_lock')) {
      return module_invoke($module, 'panels_cache_break_lock', $argument, $cache);
    }
  }

  // Normal panel display editing has no locks, so we do nothing if there is
  // no fallback.
}