function variable_build_info in Variable 6
Same name and namespace in other branches
- 7.2 variable.inc \variable_build_info()
- 7 variable.inc \variable_build_info()
Build variable information, which is cached by language
1 call to variable_build_info()
- variable_info in ./
variable.module - Get variable information
File
- ./
variable.inc, line 10 - Variable API module. Extended API.
Code
function variable_build_info($options) {
$options += array(
'language' => variable_language(),
);
variable_module_include();
$variables = array();
foreach (module_implements('variable_info') as $module) {
$result = call_user_func($module . '_variable_info', $options);
if (isset($result) && is_array($result)) {
$defaults = array(
'module' => $module,
);
foreach ($result as $name => $variable) {
$variable_build = variable_build_variable($name, $variable, $options, $defaults);
$variables += $variable_build;
}
}
}
// Last chance for modules to alter variable info
drupal_alter('variable_info', $variables, $options);
return $variables;
}