Issue #1782980 by dawehner: Added Only provide theme suggestions for each views tag, not one for all.

8.0.x
dereine 2012-09-19 09:31:07 +02:00 committed by Tim Plunkett
parent 313be0e145
commit 8e11815be2
1 changed files with 1 additions and 3 deletions

View File

@ -23,9 +23,7 @@ function _views_theme_functions($hook, $view, $display = NULL) {
if ($display) {
$themes[] = $hook . '__' . $view->name . '__' . $display->id;
$themes[] = $hook . '__' . $display->id;
$themes[] = $hook . '__' . preg_replace('/[^a-z0-9]/', '_', strtolower($view->tag));
// Add theme suggestions foreach single tag.
// Add theme suggestions for each single tag.
foreach (drupal_explode_tags($view->tag) as $tag) {
$themes[] = $hook . '__' . preg_replace('/[^a-z0-9]/', '_', strtolower($tag));
}