Commit 97087958 authored by catch's avatar catch

Issue #2012526 by mcjim: Remove drupal_add_css() from book.module — use #attached.

parent c1b39526
......@@ -776,6 +776,11 @@ function book_node_view(EntityInterface $node, EntityDisplay $display, $view_mod
$node->content['book_navigation'] = array(
'#markup' => theme('book_navigation', array('book_link' => $node->book)),
'#weight' => 100,
'#attached' => array(
'css' => array(
drupal_get_path('module', 'book') . '/css/book.theme.css',
),
),
);
}
}
......@@ -986,7 +991,6 @@ function template_preprocess_book_all_books_block(&$variables) {
* Properties used: bid, link_title, depth, plid, mlid.
*/
function template_preprocess_book_navigation(&$variables) {
drupal_add_css(drupal_get_path('module', 'book') . '/css/book.theme.css');
$book_link = $variables['book_link'];
// Provide extra variables for themers. Not needed by default.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment