From 02d2f6e04a29acb1c3fcedcd5068878cffb10fbf Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 13 Jan 2010 05:40:03 +0000 Subject: #678714 by effulgentsia: Unify use of theme hook / template suggestions, fix clobbering problems, and improve suggestion discovery performance. --- modules/comment/comment.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 3bbc3d991..678c92bf2 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2126,7 +2126,7 @@ function template_preprocess_comment(&$variables) { // Preprocess fields. field_attach_preprocess('comment', $comment, $variables['elements'], $variables); - $variables['template_files'][] = 'comment-' . $variables['node']->type; + $variables['theme_hook_suggestions'][] = 'comment__' . $variables['node']->type; // Helpful $content variable for templates. foreach (element_children($variables['elements']) as $key) { @@ -2217,7 +2217,7 @@ function template_preprocess_comment_wrapper(&$variables) { // Provide contextual information. $variables['node'] = $variables['content']['#node']; $variables['display_mode'] = variable_get('comment_default_mode_' . $variables['node']->type, COMMENT_MODE_THREADED); - $variables['template_files'][] = 'comment-wrapper-' . $variables['node']->type; + $variables['theme_hook_suggestions'][] = 'comment_wrapper__' . $variables['node']->type; } /** -- cgit v1.2.3