The s5 slideshow link below the node appears on every content type node. It should be restriced to appear only on nodes of the type bookpage.

Comments

ak’s picture

Status: Active » Reviewed & tested by the community

I found the small typo responsible for this

function s5_book_link($type, $node = NULL, $teaser = FALSE) {
  $links = array();
-  if ($type == 'node' && $node->type = 'book' && !$teaser) {
+  if ($type == 'node' && $node->type == 'book' && !$teaser) {
    $links[] = l(t('s5 slideshow'), 'book/export/s5/'. $node->nid, array('title' => t('View a slideshow of this book page and subpages.')));
  }
  return $links;
}
gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch, I have committed the fix.

Anonymous’s picture

Status: Fixed » Closed (fixed)