You are here

function variable_build_info in Variable 7

Same name and namespace in other branches
  1. 6 variable.inc \variable_build_info()
  2. 7.2 variable.inc \variable_build_info()

Build generic variable information

1 call to variable_build_info()
variable_static in ./variable.module
Get variable info static data, try the cache, or invoke the hook to collect it.

File

./variable.inc, line 10
Variable API module. Extended API.

Code

function variable_build_info($type, $options) {
  variable_module_include();
  switch ($type) {
    case 'variable':
      return variable_build_list_info($options);
    case 'group':
    case 'type':
    case 'realm':
      $info = variable_invoke_all('variable_' . $type . '_info');
      drupal_alter('variable_' . $type . '_info', $info);
      return $info;
  }
}