Commit 8e11815b authored by dawehner's avatar dawehner Committed by tim.plunkett

Issue #1782980 by dawehner: Added Only provide theme suggestions for each...

Issue #1782980 by dawehner: Added Only provide theme suggestions for each views tag, not one for all.
parent 313be0e1
......@@ -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));
}
......
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