function hook_entity_view_mode_info_alter

Alter the view modes for entity types.

Parameters

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

See also

entity_get_view_modes()

hook_entity_view_mode_info()

Related topics

2 functions implement hook_entity_view_mode_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

entity_test_entity_view_mode_info_alter in drupal/core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_entity_view_mode_info_alter().
field_test_entity_view_mode_info_alter in drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc
Implements hook_entity_view_mode_info_alter().

File

drupal/core/includes/entity.api.php, line 42
Hooks provided the Entity module.

Code

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