This took me far too long to track down. Finally solved it with grep -R -A 10.

When the exif module is installed, it overwrites the options_select and options_buttons widget field types with incorrect values. The result is the two option widgets are no longer available for other fields. I experienced the issue with entityreference, but many other modules will have the same problem.

This entire hook must be removed.

/**
 * Implements hook_field_widget_info_alter().
 */
function exif_field_widget_info_alter(&$info) {
  $info['options_select']['field types'] = array('text', 'text_long', 'taxonomy_term_reference','date', 'datetime', 'datestamp');
  $info['options_buttons']['field types'] = array('text', 'text_long', 'taxonomy_term_reference','date', 'datetime', 'datestamp');
}

Comments

Pierre_G’s picture

Hi
I'm coming here from Entity Ref module indeed.
http://drupal.org/node/1616070

Is there any news about this ?

rbruhn’s picture

Came here from the same issue experienced by Pierre.
Rather than remove, couldn't you simply fix it like this:

function exif_field_widget_info_alter(&$info) {
  $info['options_select']['field types'][] = array('text', 'text_long', 'taxonomy_term_reference','date', 'datetime', 'datestamp');
  $info['options_buttons']['field types'][] = array('text', 'text_long', 'taxonomy_term_reference','date', 'datetime', 'datestamp');
}
raphael_alla’s picture

This bugs affects me too. Please fix ASAP

jphautin’s picture

Assigned: Unassigned » jphautin
aasarava’s picture

What is the point of altering the options_select and options_buttons widgets just to add back in the standard types? Seems like it could be removed completely, no? Otherwise, if there's some reason it's needed, an array_merge() would probably do the trick to prevent overwriting existing values.

Pierre_G’s picture

Any news on this ?

Exploratus’s picture

Happening to me also with entity reference.

loze’s picture

+1 for removing this hook.

It doesn't appear to do anything (except break other fields). Maybe the maintainer can chime in.

I've commented out the hook in my install and everything appears to work fine.

jphautin’s picture

Status: Active » Fixed
tobiasb’s picture

firfin’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

grammar