4.6.x bootstrap.inc variable_get($name, $default)
4.7.x bootstrap.inc variable_get($name, $default)
5.x bootstrap.inc variable_get($name, $default)
6.x bootstrap.inc variable_get($name, $default)
7.x 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.

243 calls to variable_get()
aggregator_admin_settings in modules/aggregator/aggregator.module
aggregator_filter_xss in modules/aggregator/aggregator.module
Safely render HTML content, as allowed.
aggregator_page_categories in modules/aggregator/aggregator.module
Menu callback; displays all the categories used by the aggregator.
aggregator_page_category in modules/aggregator/aggregator.module
Menu callback; displays all the items aggregated in a particular category.
aggregator_page_last in modules/aggregator/aggregator.module
Menu callback; displays the most recent items gathered from any feed.

... See full list

File

includes/bootstrap.inc, line 449
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;
}