You are here

function panels_set in Panels 5.2

Global storage function, used mostly so that _submit hooks can pass data back to their originator more easily. TODO: deprecated but still in use.

2 calls to panels_set()
panels_add_content in includes/display_edit.inc
panels_get in ./panels.module
Retrieve from global storage

File

./panels.module, line 363
panels.module Core API for Panels. Provides display editing and rendering capabilities.

Code

function panels_set($var, $value = NULL) {
  static $vars = array();
  if ($value !== NULL) {
    $vars[$var] = $value;
  }
  return $vars[$var];
}