Because thee field settings are stored as variables, they do not get included with exported cck fields when using features to export a content type.
Rather than using hook_form_alter and storing the settings in variables, you should instead hook into the cck field using hook_widget_settings_alter(). Take a loot at the insert module for a good example of how to do this.
This will ensure that all the settings for each cck field can be properly encapsulated with the field, and included on any exports.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 654730-imagecrop-cck-widget.patch | 17.91 KB | mrfelton |
Comments
Comment #1
mrfelton commentedAttached patch reworks things so that proper cck hooks are used to alter the widget. This gives you:
Comment #2
mrfelton commentedFixed in CVS: http://drupal.org/cvs?commit=333520