You are here

function authcache_panels_pane_fragment_id in Authenticated User Page Caching (Authcache) 7.2

Return a fragment id for the given pane.

3 calls to authcache_panels_pane_fragment_id()
authcache_panels_panels_pane_content_alter in modules/authcache_panels/authcache_panels.module
Implements hook_panels_pane_content_alter().
authcache_panels_pane_fragment_enabled in modules/authcache_panels/authcache_panels.module
Return TRUE when a valid authcache configuration exists for the given pane.
_authcache_panels_page_manager_collect_fragments_from_handlers in modules/authcache_panels_page_manager/authcache_panels_page_manager.module
Utility function: produce fragments from page manager handler.

File

modules/authcache_panels/authcache_panels.module, line 95
Authcache support for Panels.

Code

function authcache_panels_pane_fragment_id($pane) {
  if (!empty($pane->cache) && $pane->cache['method'] === 'authcache_panels') {
    return 'panels/' . str_replace('_', '-', $pane->cache['settings']['machine_name']);
  }
  return FALSE;
}