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