You are here

function panels_page_loaded_cache in Panels 6.2

2 calls to panels_page_loaded_cache()
panels_page_fetch_primary_display in panels_page/panels_page.read.inc
Internal panels_page API function; directs the current display ($panel_page->display) to the primary display ($panel_page->primary), loading the primary display if necessary.
panels_page_load in panels_page/panels_page.read.inc
Load a panel page.

File

panels_page/panels_page.read.inc, line 119
panels_page.write.inc

Code

function panels_page_loaded_cache($id, $panel_page = NULL) {
  static $cache = array();
  if (is_object($panel_page)) {
    $cache[$id] = $panel_page;

    // Make sure that we've statically cached the loaded page for both possible
    // unique identifiers - $page->pid AND $page->name.
    $other_id = is_numeric($id) ? $panel_page->name : $panel_page->pid;
    $cache[$other_id] =& $cache[$id];
  }
  return array_key_exists($id, $cache) ? $cache[$id] : FALSE;
}