function print_epub_link_allowed in Printer, email and PDF versions 7.2
Check if the link to the EPUB version is allowed depending on the settings.
Parameters
array $args: Array containing the possible parameters: view_mode, node, type, path.
Return value
bool FALSE if not allowed, TRUE otherwise
File
- print_epub/
print_epub.module, line 176 - Displays Printer-friendly versions of Drupal pages.
Code
function print_epub_link_allowed($args) {
$print_epub_epub_tool = variable_get('print_epub_epub_tool', PRINT_EPUB_EPUB_TOOL_DEFAULT);
return user_access('access EPUB version') && !empty($print_epub_epub_tool);
}