function imagefield_crop_widget_info in Imagefield Crop 6
Same name and namespace in other branches
- 5 imagefield_crop.module \imagefield_crop_widget_info()
Implementation of CCK's hook_widget_info().
File
- ./
imagefield_crop.module, line 24
Code
function imagefield_crop_widget_info() {
$module_path = drupal_get_path('module', 'imagefield_crop');
return array(
'imagefield_crop_widget' => array(
'label' => t('Image with cropping'),
'field types' => array(
'image',
'filefield',
),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
'default value' => CONTENT_CALLBACK_CUSTOM,
),
// callback for dynamic filefield widgets to determine
// if this widget is appropriate for a file type.
'suitability callback' => 'imagefield_handles_file',
// description to use on forms to describe this widget.
'description' => t('An edit widget for image files, including a crop interface.'),
),
);
}