You are here

function imagefield_widget_info in ImageField 6.3

Same name and namespace in other branches
  1. 5.2 imagefield.module \imagefield_widget_info()
  2. 5 imagefield.module \imagefield_widget_info()

Implementation of CCK's hook_widget_info().

File

./imagefield.module, line 147

Code

function imagefield_widget_info() {
  $module_path = drupal_get_path('module', 'imagefield');
  return array(
    'imagefield_widget' => array(
      'label' => t('Image'),
      'field types' => array(
        'filefield',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_CUSTOM,
      ),
      'description' => t('An edit widget for image files, including a preview of the image.'),
    ),
  );
}