function variable_get
7.x bootstrap.inc | variable_get($name, $default = NULL) |
6.x bootstrap.inc | variable_get($name, $default) |
Returns a persistent variable.
Case-sensitivity of the variable_* functions depends on the database collation used. To avoid problems, always use lower case for persistent variable names.
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.
See also
variable_del(), variable_set()
293 calls to variable_get()
- actions_do in drupal-6.x/
includes/ actions.inc - Perform a given list of actions by executing their callback functions.
- aggregator_admin_settings in drupal-6.x/
modules/ aggregator/ aggregator.admin.inc - Form builder; Configure the aggregator system.
- aggregator_categorize_items in drupal-6.x/
modules/ aggregator/ aggregator.pages.inc - Form builder; build the page list form.
- aggregator_filter_xss in drupal-6.x/
modules/ aggregator/ aggregator.module - Safely render HTML content, as allowed.
- aggregator_page_categories in drupal-6.x/
modules/ aggregator/ aggregator.pages.inc - Menu callback; displays all the categories used by the aggregator.
File
- drupal-6.x/
includes/ bootstrap.inc, line 587 - 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;
}