When using the autocomplete widget (Non multiple), the label of the field is not present.
Merge the $element variable coming from the hook_field_widget_form(). with the element variable returned.
Maybe this is unneeded and we should only get the title (And maybe other settings) coming from the variable.
Thanks for the patch. Indeed, I missed that during testing. Merged a slightly different version in 7.x-1.x.
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.