summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 29a1fc36d..c9212550c 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -649,14 +649,12 @@ function template_preprocess_taxonomy_term(&$variables) {
// languages.
field_attach_preprocess('taxonomy_term', $term, $variables['content'], $variables);
+ // Gather classes, and clean up name so there are no underscores.
$vocabulary_name_css = str_replace('_', '-', $term->vocabulary_machine_name);
-
- // Gather classes.
$variables['classes_array'][] = 'vocabulary-' . $vocabulary_name_css;
- // Clean up name so there are no underscores.
- $variables['theme_hook_suggestions'][] = 'taxonomy-term__' . $vocabulary_name_css;
- $variables['theme_hook_suggestions'][] = 'taxonomy-term__' . $term->tid;
+ $variables['theme_hook_suggestions'][] = 'taxonomy_term__' . $term->vocabulary_machine_name;
+ $variables['theme_hook_suggestions'][] = 'taxonomy_term__' . $term->tid;
}
/**