By skitten on
I've been struggling a bit to understand the relationship between custom widgets that apply to fields (via hook_field_widget_info()) and regular form API elements (via hook_element_info()) - is there any way these interoperate, or are they completely separate worlds?
Specifically some field widget modules that I'd like to be able to use in a regular form, but so far I've only been able to do it through what seems like a lot of hackery. Is there some kind of use_field_widget_as_element() function that I've been unable to find? I've googled a fair bit on this but come up blank so far, so any help appreciated.