Commit e02f16ac authored by jcnventura's avatar jcnventura

Display normal link in pages of type book that are not in books

parent 497941b0
......@@ -444,7 +444,7 @@ function print_link_allowed($args) {
// Link for this node type is disabled
return FALSE;
}
elseif (($node_type == 'book') || isset($node->book)) {
elseif (isset($node->book)) {
// Node is a book;
$print_html_book_link = variable_get('print_html_book_link', PRINT_HTML_BOOK_LINK_DEFAULT);
if (!$print_html_book_link || !user_access('access printer-friendly version')) {
......
......@@ -256,7 +256,7 @@ function print_mail_link_allowed($args) {
// Link for this node type is disabled
return FALSE;
}
elseif (($node_type == 'book') || isset($node->book)) {
elseif (isset($node->book)) {
// Node is a book;
$print_mail_book_link = variable_get('print_mail_book_link', PRINT_MAIL_BOOK_LINK_DEFAULT);
if (!$print_mail_book_link || !user_access('access printer-friendly version')) {
......
......@@ -293,7 +293,7 @@ function print_pdf_link_allowed($args) {
// Link for this node type is disabled
return FALSE;
}
elseif (($node_type == 'book') || isset($node->book)) {
elseif (isset($node->book)) {
// Node is a book;
$print_pdf_book_link = variable_get('print_pdf_book_link', PRINT_PDF_BOOK_LINK_DEFAULT);
if (!$print_pdf_book_link || !user_access('access printer-friendly version')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment