You are here

function variable_global_get in Variable 6

Get original global variable

File

./variable.module, line 123
Variable API module

Code

function variable_global_get($name) {
  $original =& variable_static('variable_global', array());
  if (isset($original[$name])) {
    return $original[$name];
  }
  elseif (isset($GLOBALS[$name])) {
    return $GLOBALS[$name];
  }
  else {
    return NULL;
  }
}