In email_field_info() the default widget is set as text_textfield. This causes errors because the column use for text fields is 'value' and the email column is 'email'.

When creating fields through the field_ui, it does get set to the right widget: email_textfield, but when creating fields programmatically, the widget always gets set to text_textfield whether I have the widget type defined or not.

If the default_widget is set to email_textfield, it works as expected.

CommentFileSizeAuthor
#1 patch_commit_7bfd8c3ee8b1.patch450 bytesjdelaune

Comments

jdelaune’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new450 bytes

And here's a patch

jax’s picture

Or it should implement a hook_field_widget_info_alter() to add the 'email' type to the list of types supported by 'text_textfield'. I think that implementing its own widget is a left-over from D6 where there was no _alter hook for the widgets.

mh86’s picture

Status: Needs review » Closed (duplicate)

This issue is the same as #1160302: Default formatter should be 'email_default', which has just been committed :)