You are here

function _variable_info in Variable 7

Same name and namespace in other branches
  1. 7.2 variable.module \_variable_info()

Get data from a variable module info array.

4 calls to _variable_info()
variable_get_group in ./variable.module
Get variable group information.
variable_get_info in ./variable.module
Get variable information
variable_get_option in ./variable.module
Get variable option information.
variable_get_type in ./variable.module
Get variable type information.
1 string reference to '_variable_info'
variable_build_list_info in ./variable.inc
Build variable information

File

./variable.module, line 562
Variable API module

Code

function _variable_info($type, $name = NULL, $options = array()) {
  $info =& variable_static($type, $options);
  if ($name) {
    return isset($info[$name]) ? $info[$name] : array();
  }
  else {
    return $info;
  }
}