diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:40:03 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:40:03 +0000 |
commit | 02d2f6e04a29acb1c3fcedcd5068878cffb10fbf (patch) | |
tree | 48d65b410f2dc34eaf8d69a822a09ec83e9d85df /modules/comment/comment.module | |
parent | 5d2cdb6ba95549da448e0a127e40fcc375e3886c (diff) | |
download | brdo-02d2f6e04a29acb1c3fcedcd5068878cffb10fbf.tar.gz brdo-02d2f6e04a29acb1c3fcedcd5068878cffb10fbf.tar.bz2 |
#678714 by effulgentsia: Unify use of theme hook / template suggestions, fix clobbering problems, and improve suggestion discovery performance.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 2 insertions, 2 deletions
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; } /** |