function theme_book_title_link

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

Parameters

$variables: An associative array containing:

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

Related topics

1 theme call to theme_book_title_link()
book_block_view in modules/book/book.module
Implements hook_block_view().

File

modules/book/book.module, line 363

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.