_field_ui_add_default_view_mode_settings

function _field_ui_add_default_view_mode_settings

_field_ui_add_default_view_mode_settings($entity_type, $bundle, $view_mode, &$settings)

Populates display settings for a new view mode from the default view mode.

When an administrator decides to use custom display settings for a view mode, that view mode needs to be initialized with the display settings for the 'default' view mode, which it was previously using. This helper function adds the new custom display settings to this bundle's instances, and saves them. It also modifies the passed-in $settings array, which the caller can then save using field_bundle_settings().

Parameters

$entity_type: The bundle's entity type.

$bundle: The