1 entity.api.php hook_entity_view_mode_info_alter(&$view_modes)

Alter the display modes for entity types.

Note: This hook is invoked inside an implementation of hook_entity_info_alter() so care must be taken not to call anything that will result in an additional (and hence recursive) call to entity_get_info().

Parameters

array $view_modes: An array of display modes, keyed first by entity type, then by display mode name.

See also

entity_view_mode_entity_info_alter()

hook_entity_view_mode_info()

Related topics

File

core/modules/entity/entity.api.php, line 492
Hooks provided by the Entity module.

Code

function hook_entity_view_mode_info_alter(&$view_modes) {
  $view_modes['user']['full']['custom_settings'] = TRUE;
}