Returns information about field types from hook_field_info().
$field_type: (optional) A field type name. If omitted, all field types will be returned.
Either a field type description, as provided by hook_field_info(), or an array of all existing field types, keyed by field type name.
function field_info_field_types($field_type = NULL) {
$info = _field_info_collate_types();
$field_types = $info['field types'];
if ($field_type) {
if (isset($field_types[$field_type])) {
return $field_types[$field_type];
}
}
else {
return $field_types;
}
}