function pdf_to_image_field_info in PDF to ImageField 7.2
Implements hook_field_info().
File
- ./
pdf_to_image.module, line 12 - Implement a pdf field, based on the file module's file field.
Code
function pdf_to_image_field_info() {
return array(
'pdf_to_image' => array(
'label' => t('PDF'),
'description' => t('This field stores the ID of a pdf file as an integer value.'),
'settings' => array(
'uri_scheme' => variable_get('file_default_scheme', 'public'),
),
'instance_settings' => array(
'file_extensions' => 'pdf',
'file_directory' => '',
'max_filesize' => '',
'title_field' => 0,
'hide_imagefield' => 1,
'target_field' => NULL,
'density' => '100x100',
'extra_args' => '',
),
'default_widget' => 'pdf_to_image',
'default_formatter' => 'pdf_to_image',
),
);
}