You are here

function _variable_get in Coder 7.2

Define a wrapper variable_get() function that works in Drush cli.

Parameters

string $variable: The name of the variable.

mixed $default: The default value for the variable.

Return value

mixed The value of the variable.

See also

variable_get()

2 calls to _variable_get()
_coder_review_get_default_settings in coder_review/coder_review.common.inc
Returns an active settings array for coder_review.
_coder_review_php_ext in coder_review/coder_review.common.inc
Return the valid PHP extensions.

File

coder_review/coder_review.common.inc, line 1467
Common functions used by both the drush and form interfaces.

Code

function _variable_get($variable, $default = NULL) {
  return function_exists('variable_get') ? variable_get($variable, $default) : $default;
}