Active
Project:
Views (for Drupal 7)
Version:
7.x-3.3
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2012 at 11:39 UTC
Updated:
30 May 2012 at 11:57 UTC
views.module:251: $vars['theme_hook_suggestions'][] = 'node__view__' . $vars['node']->view->name;
views.module:253: $vars['theme_hook_suggestions'][] = 'node__view__' . $vars['node']->view->name . '__' . $vars['node']->view->current_display;
I'd like to propose these two lines be changed to
views.module:251: array_splice($vars['theme_hook_suggestions'], -1, 0, 'node__view__' . $vars['node']->view->name);
views.module:253: array_splice($vars['theme_hook_suggestions'], -1, 0, 'node__view__' . $vars['node']->view->name. '__' . $vars['node']->view->current_display);
The changes will stop overriding specific use-cases based on nid when using format "content" for output.
Comments
Comment #1
dawehnerYou know when you change this like that, it can also happen that you change the behavior for people which expect that.
Maybe you could write your own preprocess function and reorder it in the way you need it.