From 37c3c7ec7aff7fad84b3839ac3fa5437b7b256b2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 30 Jul 2010 02:47:28 +0000 Subject: - Patch #769226 by Owen Barton, alanburke, sun: fixed JS/CSS preprocess should default to FALSE. --- modules/comment/comment.module | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index c6b2a9155..62e2d3d4a 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -289,6 +289,13 @@ function comment_menu() { return $items; } +/** + * Implements hook_init(). + */ +function comment_init() { + drupal_add_css(drupal_get_path('module', 'comment') . '/comment.css', array('preprocess' => TRUE)); +} + /** * Implements hook_menu_alter(). */ @@ -716,7 +723,6 @@ function comment_node_page_additions($node) { $comments = comment_load_multiple($cids); comment_prepare_thread($comments); $build = comment_view_multiple($comments, $node); - $build['#attached']['css'][] = drupal_get_path('module', 'comment') . '/comment.css'; $build['pager']['#theme'] = 'pager'; $additions['comments'] = $build; } -- cgit v1.2.3