how to add field_image widget (imagefield crop) to a custom form api How can i add to my custom form api in my custom module the default widget from field_image?
I am using imagefield_crop module widget and it works in node/add form, but i cannot replicate it in my custom form api.
Problem is, Field API and Form API are separate things. You can add form elements to custom forms created with Form API, and you can add fields to custom entities created with Field API, but you can't really cross the border. Well, you can wrap form element into a field, but not the other way around.