You are here

function variable_get in Drupal 4

Same name and namespace in other branches
  1. 5 includes/bootstrap.inc \variable_get()
  2. 6 includes/bootstrap.inc \variable_get()
  3. 7 includes/bootstrap.inc \variable_get()

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.

196 calls to variable_get()
aggregator_filter_xss in modules/aggregator.module
Safely render HTML content, as allowed.
aggregator_page_categories in modules/aggregator.module
Menu callback; displays all the categories used by the aggregator.
aggregator_page_opml in modules/aggregator.module
Menu callback; generates an OPML representation of all feeds.
aggregator_page_rss in modules/aggregator.module
Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
aggregator_page_sources in modules/aggregator.module
Menu callback; displays all the feeds used by the aggregator.

... See full list

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;
}