function variable_get

cis7 bootstrap.inc variable_get($name, $default = NULL)
cle7 bootstrap.inc variable_get($name, $default = NULL)
elmsmedia7 bootstrap.inc variable_get($name, $default = NULL)
icor7 bootstrap.inc variable_get($name, $default = NULL)
meedjum_blog7 bootstrap.inc variable_get($name, $default = NULL)
mooc7 bootstrap.inc variable_get($name, $default = NULL)

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. Unserialization is taken care of as necessary.

See also

variable_del()

variable_set()

1499 calls to variable_get()
accessibility_content_admin_form in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
accessibility_content_field_widget_form_alter in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.module
Implements field_widget_form_alter().
accessibility_content_init in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.inc
accessibility_testswarm_accessibility_testswarm_paths in sites/all/modules/ulmus/accessibility/modules/accessibility_testswarm/accessibility_testswarm.module
Implements hook_accessibility_testswarm_paths()
accessibility_testswarm_admin_form in sites/all/modules/ulmus/accessibility/modules/accessibility_testswarm/accessibility_testswarm.admin.inc
Admin form for users to define paths for automated accessibility testing.

... See full list

1 string reference to 'variable_get'
system_test_menu in modules/simpletest/tests/system_test.module
Implements hook_menu().

File

includes/bootstrap.inc, line 951
Functions that need to be loaded on every Drupal request.

Code

function variable_get($name, $default = NULL) {
  global $conf;

  return isset($conf[$name]) ? $conf[$name] : $default;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.