You are here

function panels_get_legacy_state in Panels 7.3

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

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 Returns a legacy panels state.

File

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

Code

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