From cba99db42bb59bd905cf54a3465bcd90d2e1966e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 22 Nov 2005 15:11:40 +0000 Subject: - Patch #38296 by Ber: generate rel-tags for book pages. Makes it easier to browse in some browsers. --- modules/book/book.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/book') diff --git a/modules/book/book.module b/modules/book/book.module index 73bbee3fa..5d616ef63 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -487,6 +487,7 @@ function theme_book_navigation($node) { } if ($prev = book_prev($node)) { + drupal_add_link(array('rel' => 'prev', 'href' => 'node/'. $prev->nid)); $links .= ''; @@ -496,6 +497,7 @@ function theme_book_navigation($node) { $links .= ''; // Make an empty div to fill the space. } if ($next = book_next($node)) { + drupal_add_link(array('rel' => 'next', 'href' => 'node/'. $next->nid)); $links .= ''; @@ -505,6 +507,7 @@ function theme_book_navigation($node) { $links .= ''; // Make an empty div to fill the space. } if ($node->parent) { + drupal_add_link(array('rel' => 'index', 'href' => 'node/'. $node->parent)); $links .= '
'; $links .= l(t('up'), 'node/'. $node->parent, array('title' => t('View this page\'s parent section.'))); $links .= '
'; -- cgit v1.2.3