function file_entity_view_mode_label in D7 Media 7
Return the label for a specific file entity view mode.
1 call to file_entity_view_mode_label()
- file_entity_field_formatter_settings_summary in file_entity/
file_entity.field.inc - Implements hook_field_formatter_settings_summary().
File
- file_entity/
file_entity.module, line 336 - Extends Drupal file entities to be fieldable and viewable.
Code
function file_entity_view_mode_label($view_mode, $default = FALSE) {
$labels = file_entity_view_mode_labels();
return isset($labels[$view_mode]) ? $labels[$view_mode] : $default;
}