You are here

function er_viewmode_field_formatter_info_alter in Entity reference viewmode selector 7

Overwrite entityreference modules field_formatter implementation.

@todo research less invasive way of archiving this.

Implements hook_field_formatter_info_alter().

File

./er_viewmode.module, line 106

Code

function er_viewmode_field_formatter_info_alter(&$info) {
  $info['entityreference_entity_view']['module'] = 'er_viewmode';
}