1 file.module file_view_mode_label($view_mode, $default = FALSE)

Return the label for a specific file entity view mode.

File

core/modules/file/file.module, line 2387
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_view_mode_label($view_mode, $default = FALSE) {
  $labels = file_view_mode_labels();
  return isset($labels[$view_mode]) ? $labels[$view_mode] : $default;
}