--- imagefield_crop.module 2009-11-11 01:12:53.000000000 -0700 +++ imagefield_crop.module 2011-01-09 22:50:02.000000000 -0700 @@ -127,3 +127,20 @@ function theme_imagefield_crop_widget_pr return ''; } + +/** + * Implementation of hook_insert_widgets() + * - Provides integration support for the 'Insert' module + */ +function imagefield_crop_insert_widgets() { + return array( + 'imagefield_crop_widget' => array( + 'wrapper' => '.filefield-element', + 'fields' => array( + 'alt' => 'input[name$="[alt]"], textarea[name$="[alt]"]', + 'title' => 'input[name$="[title]"], textarea[name$="[title]"]', + 'description' => 'input[name$="[description]"], textarea[name$="[description]"]', + ), + ), + ); +}