Commit e6bfe4fd authored by catch's avatar catch
Browse files

Issue #1751054 by borisbaldinger: Fixed Taxonomy template variables are...

Issue #1751054 by borisbaldinger: Fixed Taxonomy template variables are getting merged with the term itself.
parent fae3c986
......@@ -5,7 +5,6 @@
* Default theme implementation to display a term.
*
* Available variables:
* - $name: the (sanitized) name of the term.
* - $content: An array of items for the content of the term (fields and
* description). Use render($content) to print them all, or print a subset
* such as render($content['field_example']). Use
......
......@@ -635,9 +635,6 @@ function template_preprocess_taxonomy_term(&$variables) {
$variables['label'] = check_plain($term->label());
$variables['page'] = $variables['view_mode'] == 'full' && taxonomy_term_is_page($term);
// Flatten the term object's member fields.
$variables = array_merge((array) $term, $variables);
// Helpful $content variable for templates.
$variables['content'] = array();
foreach (element_children($variables['elements']) as $key) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment