You are here

pdf_document.features.content.inc in PDF to ImageField 6.2

Same filename and directory in other branches
  1. 7 pdf_document/pdf_document.features.content.inc

File

pdf_document/pdf_document.features.content.inc
View source
<?php

/**
 * Implementation of hook_content_default_fields().
 */
function pdf_document_content_default_fields() {
  $fields = array();

  // Exported field: field_image
  $fields['document-field_image'] = array(
    'field_name' => 'field_image',
    'type_name' => 'document',
    'display_settings' => array(
      'weight' => '-3',
      'parent' => '',
      'label' => array(
        'format' => 'hidden',
      ),
      'teaser' => array(
        'format' => 'image_nodelink',
        'exclude' => 0,
      ),
      'full' => array(
        'format' => 'image_plain',
        'exclude' => 0,
      ),
      'token' => array(
        'format' => 'image_plain',
        'exclude' => 0,
      ),
    ),
    'widget_active' => '1',
    'type' => 'filefield',
    'required' => '0',
    'multiple' => '0',
    'module' => 'filefield',
    'active' => '1',
    'list_field' => '0',
    'list_default' => 1,
    'description_field' => '0',
    'widget' => array(
      'file_extensions' => 'png gif jpg jpeg',
      'file_path' => 'pdf-images',
      'progress_indicator' => 'bar',
      'max_filesize_per_file' => '',
      'max_filesize_per_node' => '',
      'max_resolution' => '0',
      'min_resolution' => '0',
      'alt' => '',
      'custom_alt' => 0,
      'title' => '',
      'custom_title' => 0,
      'title_type' => 'textfield',
      'default_image' => NULL,
      'use_default_image' => 0,
      'label' => 'Image',
      'weight' => '-1',
      'description' => 'This image will be auto-generated from the attached PDF document if possible, or you can upload an image of your own.
Leave blank to let the automatic shapshot happen when you save this document.',
      'type' => 'imagefield_widget',
      'module' => 'imagefield',
    ),
  );

  // Exported field: field_pdf
  $fields['document-field_pdf'] = array(
    'field_name' => 'field_pdf',
    'type_name' => 'document',
    'display_settings' => array(
      'weight' => '-4',
      'parent' => '',
      'label' => array(
        'format' => 'hidden',
      ),
      'teaser' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      'full' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      '4' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      '2' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      '3' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      'token' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
    ),
    'widget_active' => '1',
    'type' => 'filefield',
    'required' => '0',
    'multiple' => '0',
    'module' => 'filefield',
    'active' => '1',
    'list_field' => '1',
    'list_default' => 1,
    'description_field' => '1',
    'widget' => array(
      'file_extensions' => '',
      'file_path' => 'pdf',
      'progress_indicator' => 'bar',
      'max_filesize_per_file' => '',
      'max_filesize_per_node' => '',
      'target_imagefield' => 'field_image',
      'density' => '40x40',
      'label' => 'PDF',
      'weight' => '-2',
      'description' => '',
      'type' => 'pdf_to_imagefield_widget',
      'module' => 'pdf_to_imagefield',
    ),
  );

  // Translatables
  // Included for use with string extractors like potx.
  t('Image');
  t('PDF');
  return $fields;
}

Functions

Namesort descending Description
pdf_document_content_default_fields Implementation of hook_content_default_fields().