function hook_entity_view_mode_info_alter in Entity view modes 7
Alter the view 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 recurisve call to entity_get_info().
Parameters
array $view_modes: An array of view modes, keyed first by entity type, then by view mode name.
See also
entity_view_mode_entity_info_alter()
1 function implements 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.
File
- ./
entity_view_mode.api.php, line 65 - API documentation for the entity_view_mode module.
Code
function hook_entity_view_mode_info_alter(&$view_modes) {
$view_modes['user']['full']['custom_settings'] = TRUE;
}