You are here

function epub_field_formatter_info in Epub 7

Implements hook_field_formatter_info().

File

includes/epub.field.inc, line 5

Code

function epub_field_formatter_info() {
  return array(
    'epub_cover' => array(
      'label' => t('EPUB cover image'),
      'description' => t('Displays the cover image of ebook'),
      'field types' => array(
        'file',
      ),
      'settings' => array(
        'width' => '100%',
      ),
    ),
    'epub_default' => array(
      'label' => t('EPUB: Default'),
      'description' => t('Displays ebook pages in an iframe'),
      'field types' => array(
        'file',
      ),
      'settings' => array(
        'width' => '100%',
        'height' => 'auto',
      ),
    ),
    'epub_toc' => array(
      'label' => t('EPUB: Table of Contents'),
      'description' => t('Displays the table of contents of the ebook'),
      'field types' => array(
        'file',
      ),
      'settings' => array(),
    ),
    'epub_js' => array(
      'label' => t('EPUB: epub.js'),
      'description' => t('Displays ebook with epub.js/reader/index.html'),
      'field types' => array(
        'file',
      ),
      'settings' => array(
        'unzipped' => TRUE,
        'width' => '100%',
        'height' => '600px',
      ),
    ),
    'epub_js_reader' => array(
      'label' => t('EPUB: epub.js reader'),
      'description' => t('Display a link to open the ebook online with Epub.js reader'),
      'field types' => array(
        'file',
      ),
      'settings' => array(
        'unzipped' => TRUE,
      ),
    ),
  );
}