You are here

function pdf_to_imagefield_element_info in PDF to ImageField 7

Implements hook_element_info().

Publishes our custom filefield widget.

File

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

Code

function pdf_to_imagefield_element_info() {
  $elements = array();

  // An PDF to ImageField is really just a FileField.
  $filefield_elements = module_invoke('filefield', 'elements');
  $elements['pdf_to_imagefield_widget'] = $filefield_elements['filefield_widget'];
  $elements['pdf_to_imagefield_widget']['#process'][] = 'pdf_to_imagefield_widget_process';
  return $elements;
}