6.x book.module theme_book_title_link($link)
7.x book.module theme_book_title_link($variables)

Returns HTML for a link to a book title when used as a block title.


$variables: An associative array containing:

  • link: An array containing title, href and options for the link.

Related topics


modules/book/book.module, line 363
Allows users to create and organize related content in an outline.


function theme_book_title_link($variables) {
  $link = $variables['link'];
  $link['options']['attributes']['class'] = array(
  return l($link['title'], $link['href'], $link['options']);


vchen’s picture

is it possible to change the title of the link to another field? I don't know coding well, but how do you get the special values like 'title' and replace that with a specific field instead?