In order for the theme overrides to work correctly $vars['template_files'] should be replaced with $vars['theme_hook_suggestions'] and the format of the candidate template files changed to 'node__view__' and 'comment__view__' respectively for node and comment view theme overrides. This change for D7 is documented here. I have attached a patch with this change.

CommentFileSizeAuthor
views.patch1.82 KBelliotttf
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

What happens here with existing templates. Will they have to be renamed?

I guess yes, see http://api.drupal.org/api/function/template_preprocess_node/6 and http://api.drupal.org/api/function/template_preprocess_node/7

So it's fine to do this for views, too.

elliotttf’s picture

Yeah, from what little D7 work I've done updating the template file names will be required.

dawehner’s picture

Status: Needs review » Fixed

Okay this is fine. I added some documentation but this is fine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

q0rban’s picture

Issue summary: View changes

Repaired anchor href.