function variable_module_include in Variable 6
Same name and namespace in other branches
- 7.2 variable.inc \variable_module_include()
- 7 variable.inc \variable_module_include()
General function to include variable definitions for all modules
3 calls to variable_module_include()
- variable_build_groups in ./
variable.inc - Build variable groups information
- variable_build_info in ./
variable.inc - Build variable information, which is cached by language
- variable_type_defaults in ./
variable.inc - Get form element properties for a variable type
File
- ./
variable.inc, line 163 - Variable API module. Extended API.
Code
function variable_module_include() {
static $run = FALSE;
if (!$run) {
$run = TRUE;
$modules_enabled = array_keys(module_list());
$modules_included = array(
'system',
'node',
'user',
'taxonomy',
);
foreach ($modules_enabled as $module) {
if (in_array($module, $modules_included)) {
module_load_include('variable.inc', 'variable', 'includes/' . $module);
}
else {
module_load_include('variable.inc', $module);
}
}
}
}