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/profile/profile.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/profile') diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 0261f1549..244c8804d 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -585,8 +585,7 @@ function template_preprocess_profile_wrapper(&$variables) { $variables['current_field'] = ''; if ($field = arg(1)) { $variables['current_field'] = $field; - // Supply an alternate template suggestion based on the browsable field. - $variables['template_files'][] = 'profile-wrapper-' . $field; + $variables['theme_hook_suggestions'][] = 'profile_wrapper__' . $field; } } -- cgit v1.2.3