1 field_ui.admin.inc field_ui_manage_display_title($entity_type, $machine_name)

Title callback: Gets the display mode name.

See also

field_ui_menu()

File

core/modules/field_ui/field_ui.admin.inc, line 12
Administrative interface for custom field type creation.

Code

function field_ui_manage_display_title($entity_type, $machine_name) {
  if ($machine_name === 'default') {
    return t('Default');
  }
  $view_mode = entity_view_mode_load($entity_type, $machine_name);
  return $view_mode['label'];
}