function entity_embed_field_info_instance in Entity Embed 7.3
Our own field-less entity-less version of field_info_instance().
Parameters
$formatter_type: A formatter type name.
int $settings: Optional array of settings to pass in. If omitted, the formatter's default settings will be returned.
In our version of field_info_instance() we don't care at all about the field itself. All we want is the field instance array in a format that lets us hack into hook_field_formatter_view() and hook_field_formatter_settings_form(). The problem is that each module may expect something different in this array.
This is mainly a wrapper around entity_embed_field_get_display().
1 call to entity_embed_field_info_instance()
- render_entity_embed_display_plugin in includes/
entity_embed.display.inc - Renders an entity using an Entity Embed Display plugin.
File
- includes/
entity_embed.display.inc, line 490 - Display functions.
Code
function entity_embed_field_info_instance($formatter_type, $settings = array()) {
return array(
'display' => array(
'default' => entity_embed_field_get_display($formatter_type, $settings),
),
);
}