element_info($type)
drupal/includes/common.inc, line 5238
Retrieve the default properties for the defined element type.
function element_info($type) {
$cache = &drupal_static(__FUNCTION__);
if (!isset($cache)) {
$cache = module_invoke_all('element_info');
foreach ($cache as $element_type => $info) {
$cache[$element_type]['#type'] = $element_type;
}
// Allow modules to alter the element type defaults.
drupal_alter('element_info', $cache);
}
return isset($cache[$type]) ? $cache[$type] : array();
}