From 8a3098d0c14d7347da32aae8bb0175181ee7a383 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 25 Jul 2010 02:45:27 +0000 Subject: - Patch #675116 by jhodgdon: several problems in field.api.php and field_ui().api.php. --- modules/taxonomy/taxonomy.module | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/taxonomy') 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; } /** -- cgit v1.2.3