function epub_theme in Epub 7
Same name and namespace in other branches
- 8 epub.module \epub_theme()
- 6 epub.module \epub_theme()
File
- ./
epub.module, line 80
Code
function epub_theme() {
$path = drupal_get_path('module', 'epub') . '/theme';
$theme = array(
'epub_formatter_cover' => array(
'variables' => array(
'file' => NULL,
'width' => NULL,
),
'file' => 'includes/epub.field.inc',
),
'epub_formatter_default' => array(
'variables' => array(
'file' => NULL,
'width' => NULL,
'height' => NULL,
),
'file' => 'includes/epub.field.inc',
),
'epub_formatter_toc' => array(
'variables' => array(
'file' => NULL,
),
'file' => 'includes/epub.field.inc',
),
'epub_formatter_epubjs' => array(
'variables' => array(
'file' => NULL,
'unzipped' => TRUE,
'width' => NULL,
'height' => NULL,
),
'file' => 'includes/epub.field.inc',
),
'epub_formatter_epubjs_reader' => array(
'variables' => array(
'file' => NULL,
'unzipped' => TRUE,
),
'file' => 'includes/epub.field.inc',
),
'epub_js_reader' => array(
'template' => 'epub-js-reader',
'variables' => array(
'file' => NULL,
),
'path' => $path,
),
);
return $theme;
}