| 5 bootstrap.inc | variable_get($name, $default) |
| 6 bootstrap.inc | variable_get($name, $default) |
| 7 bootstrap.inc | variable_get($name, $default = NULL) |
| 8 bootstrap.inc | variable_get($name, $default = NULL) |
Return a persistent variable.
Parameters
$name: The name of the variable to return.
$default: The default value to use if this variable has never been set.
Return value
The value of the variable.
209 calls to variable_get()
File
- includes/
bootstrap.inc, line 271 - Functions that need to be loaded on every Drupal request.
Code
function variable_get($name, $default) {
global $conf;
return isset($conf[$name]) ? $conf[$name] : $default;
}
Login or register to post comments