function epub_view in Epub 6
Implementation of hook_view().
File
- ./
epub.module, line 276 - Provide ePub content type and enable the creation of ePub files from book contents.
Code
function epub_view($node, $teaser = FALSE, $page = FALSE) {
$node = node_prepare($node, $teaser);
$node->content['epub'] = array(
'#value' => theme('epub_info', l($node->book_outline, 'node/' . $node->bid), check_plain($node->author_name), check_plain($node->language_code), check_plain($node->identifier), check_plain($node->identifier_type), check_plain($node->creation_date), check_plain($node->publisher_name), l($node->publisher_site, $node->publisher_site), check_plain($node->rights), l($node->source_url, $node->source_url)),
'#weight' => 1,
);
return $node;
}