1 entityreference.module entityreference_field_widget_info_alter(&$info)

Implements hook_field_widget_info_alter().

File

core/modules/entityreference/entityreference.module, line 730
Entityreference primary module file.

Code

function entityreference_field_widget_info_alter(&$info) {
  if (module_exists('options')) {
    $info['options_select']['field types'][] = 'entityreference';
    $info['options_buttons']['field types'][] = 'entityreference';
  }
}