function pdf_to_imagefield_elements in PDF to ImageField 6.2
Same name and namespace in other branches
- 6 pdf_to_imagefield.module \pdf_to_imagefield_elements()
Implementation of hook_elements().
Publishes our custom filefield widget.
File
- ./
pdf_to_imagefield.module, line 520 - PDF to ImageField core hooks and menu callbacks.
Code
function pdf_to_imagefield_elements() {
$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;
}