You are here

function entityreference_field_widget_info_alter in Entity reference 8

Same name and namespace in other branches
  1. 7 entityreference.module \entityreference_field_widget_info_alter()

Implements hook_field_widget_info_alter().

@todo: Move this to plugin alteration after: http://drupal.org/node/1751234 http://drupal.org/node/1705702

File

./entityreference.module, line 329
Provides a field that can reference other entities.

Code

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