Commit 8a3098d0 authored by Dries's avatar Dries

- Patch #675116 by jhodgdon: several problems in field.api.php and field_ui().api.php.

parent 13f8a952
......@@ -2479,9 +2479,8 @@ function template_preprocess_region(&$variables) {
$variables['content'] = $variables['elements']['#children'];
$variables['region'] = $variables['elements']['#region'];
$region = drupal_region_class($variables['region']);
$variables['classes_array'][] = $region;
$variables['theme_hook_suggestions'][] = 'region__' . $region;
$variables['classes_array'][] = drupal_region_class($variables['region']);
$variables['theme_hook_suggestions'][] = 'region__' . $variables['region'];
}
/**
......
This diff is collapsed.
......@@ -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;
}
/**
......
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