You are here

function epub_theme in Epub 8

Same name and namespace in other branches
  1. 6 epub.module \epub_theme()
  2. 7 epub.module \epub_theme()

Implements hook_theme().

File

./epub.module, line 8

Code

function epub_theme() {
  return array(
    'epub_formatter_cover' => array(
      'variables' => array(
        'file' => NULL,
        'image' => 'https://upload.wikimedia.org/wikipedia/en/1/14/EPUB_logo.svg',
        'width' => NULL,
      ),
      'file' => 'epub.field.inc',
    ),
    'epub_formatter_default' => array(
      'variables' => array(
        'file' => NULL,
        'width' => NULL,
        'height' => NULL,
      ),
      'file' => 'epub.field.inc',
    ),
    'epub_formatter_toc' => array(
      'variables' => array(
        'file' => NULL,
        'toc' => NULL,
      ),
      'file' => 'epub.field.inc',
    ),
    'epub_formatter_js' => array(
      'variables' => array(
        'file' => NULL,
        'reader' => NULL,
        'unzipped' => TRUE,
        'width' => NULL,
        'height' => NULL,
      ),
      'file' => 'epub.field.inc',
    ),
    'epub_formatter_reader' => array(
      'variables' => array(
        'file' => NULL,
      ),
      'file' => 'epub.field.inc',
    ),
  );
}