diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-25 02:45:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-25 02:45:27 +0000 |
commit | 8a3098d0c14d7347da32aae8bb0175181ee7a383 (patch) | |
tree | 167699e4df3c1912bb9d3a4ded7bc85da4a2731f /modules/taxonomy/taxonomy.module | |
parent | 13f8a95296f6ae5ab4fd2d30f50611f39cc068b4 (diff) | |
download | brdo-8a3098d0c14d7347da32aae8bb0175181ee7a383.tar.gz brdo-8a3098d0c14d7347da32aae8bb0175181ee7a383.tar.bz2 |
- Patch #675116 by jhodgdon: several problems in field.api.php and field_ui().api.php.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 8 |
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; } /** |