You are here

function panels_get_legacy_state in Panels 6.3

Same name and namespace in other branches
  1. 8.3 panels.module \panels_get_legacy_state()
  2. 7.3 panels.module \panels_get_legacy_state()

Gateway to the PanelsLegacyState class/object, which does all legacy state checks and provides information about the cause of legacy states as needed.

Return value

PanelsLegacyState $legacy

Related topics

2 calls to panels_get_legacy_state()
panels_flush_caches in ./panels.module
Implementation of hook_flush_caches().
panels_requirements_runtime in ./panels.install
Check runtime requirements (status report).

File

./panels.module, line 1102
panels.module

Code

function panels_get_legacy_state() {
  static $legacy = NULL;
  if (!isset($legacy)) {
    ctools_include('legacy', 'panels');
    $legacy = new PanelsLegacyState();
  }
  return $legacy;
}