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/profile | |
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/profile')
-rw-r--r-- | modules/profile/profile.module | 3 |
1 files changed, 1 insertions, 2 deletions
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; } } |