diff --git a/core/modules/book/book.module b/core/modules/book/book.module index 5497a0a..8366e95 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -61,10 +61,6 @@ function book_theme() { 'book_tree' => array( 'render element' => 'tree', ), - 'book_link' => array( - 'render element' => 'element', - 'function' => 'theme_book_link', - ), 'book_export_html' => array( 'variables' => array('title' => NULL, 'contents' => NULL, 'depth' => NULL), ), @@ -510,30 +506,6 @@ function template_preprocess_book_tree(&$variables) { } /** - * Returns HTML for a book link and subtree. - * - * @param array $variables - * An associative array containing: - * - element: Structured array data for a book link. - * - * @ingroup themeable - */ -function theme_book_link(array $variables) { - $element = $variables['element']; - $sub_menu = ''; - - if ($element['#below']) { - $sub_menu = drupal_render($element['#below']); - } - $element['#localized_options']['set_active_class'] = TRUE; - /** @var \Drupal\Core\Url $url */ - $url = $element['#url']; - $url->setOptions($element['#localized_options'] + $url->getOptions()); - $output = \Drupal::l($element['#title'], $url); - return '' . $output . $sub_menu . "\n"; -} - -/** * Determines if a given node type is in the list of types allowed for books. * * @param string $type