function variable_type_defaults in Variable 6
Get form element properties for a variable type
1 call to variable_type_defaults()
- variable_build_variable in ./
variable.inc - Build single variable
File
- ./
variable.inc, line 75 - Variable API module. Extended API.
Code
function variable_type_defaults($type) {
$values =& variable_static('variable_type_defaults');
if (!$values) {
variable_module_include();
$values = module_invoke_all('variable_type_defaults');
drupal_alter('variable_type_defaults', $values);
}
return isset($values[$type]) ? $values[$type] : array();
}