You are here

function pdf_to_imagefield_widget_info in PDF to ImageField 6.2

Same name and namespace in other branches
  1. 6 pdf_to_imagefield.module \pdf_to_imagefield_widget_info()

Declare that this module provides a new widget for handling filefields.

Implementation of CCK's hook_widget_info().

File

./pdf_to_imagefield.module, line 535
PDF to ImageField core hooks and menu callbacks.

Code

function pdf_to_imagefield_widget_info() {
  $module_path = drupal_get_path('module', 'pdf_to_imagefield');
  return array(
    'pdf_to_imagefield_widget' => array(
      'label' => t('PDF to ImageField'),
      'field types' => array(
        'filefield',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_CUSTOM,
      ),
      'description' => t('An edit widget for pdf files, including functionality to convert pdf pages to ImageField files.'),
    ),
  );
}