theme_book_title_link

function theme_book_title_link

theme_book_title_link($variables)

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

File

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

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']);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!book!book.module/function/theme_book_title_link/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部