function variable_get_type in Variable 7
Same name and namespace in other branches
- 7.2 variable.module \variable_get_type()
Get variable type information.
Parameters
$type: Type name. Will return all if no name.
Related topics
8 calls to variable_get_type()
- variable_admin_group_list in variable_admin/
variable_admin.inc - Build list of variables for group
- variable_build_list_info in ./
variable.inc - Build variable information
- variable_build_multiple in ./
variable.inc - Build multiple variables
- variable_form_element_default in ./
variable.form.inc - Build default form element
- variable_form_element_text_format in ./
variable.form.inc - Build form element for text_format variable.
File
- ./
variable.module, line 196 - Variable API module
Code
function variable_get_type($type = NULL) {
$info = _variable_info('type', $type);
if ($type && !empty($info['type'])) {
// Add subtipe properties, recursive
$info += variable_get_type($info['type']);
}
return $info;
}