1 view_mode_test.module view_mode_test_entity_view_mode_info_alter(&$info)

Implements hook_entity_view_mode_info_alter().

File

core/modules/field_ui/tests/view_mode_test/view_mode_test.module, line 76
Test module for Field UI display modes.

Code

function view_mode_test_entity_view_mode_info_alter(&$info) {
  $info['node']['info_2']['label'] = t('Hook-altered display mode');
  $info['node']['info_2']['custom settings'] = TRUE;
}