You are here

function entityreference_field_widget_info_alter in Entity reference 7

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

Implements hook_field_widget_info_alter().

File

./entityreference.module, line 769
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';
  }
}