function entity_metadata_field_text_formats in Entity API 7
Defines the list of all available text formats.
1 string reference to 'entity_metadata_field_text_formats'
- entity_property_text_formatted_info in includes/
entity.property.inc - Defines info for the properties of the text_formatted data structure.
File
- modules/
callbacks.inc, line 608 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_field_text_formats() {
foreach (filter_formats() as $key => $format) {
$formats[$key] = $format->name;
}
return $formats;
}