Needs work
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2009 at 01:50 UTC
Updated:
2 Mar 2019 at 14:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kbahey commentedAnd the patch itself is now attached.
Comment #2
merlinofchaos commentedInstead of duplicating the code, can we move the code so that all views -- page, block, embedded, calendar, feeds, etc, can benefit from this?
Comment #3
kbahey commentedThe page and block ones use the $view->execute_display(), the embed one uses $view->preview().
Is it enough to change the execute_display() and the preview() functions in the views.inc file, or is there other stuff I am missing?
I attached a patch that puts the display in the preview and in the execute_display. See if that is enough. If it is not, then point me in the right direction ...
Comment #4
merlinofchaos commentedTentatively yes, I think that's the right place. I'll look more closely at this a little later on but I think this looks pretty good in a quick scan.
Comment #5
kbahey commentedThe patch had an error in it. I fixed it and tested it on a live site, and it works.
Attached.
Comment #6
merlinofchaos commentedCommitted to 6.x-3.x
Comment #7
dawehnerI renamed vpr to the generic debug function of drupal core: http://api.drupal.org/api/function/debug/7
Just ignore the name :)
Comment #8
dawehnerRerolled the patch, but i don't see the queries.
Comment #9
dawehnerAnd this should be called as needs review? THIS IS NOT REVIEW.
Comment #10
dawehnerHere is a rerole. It works in general but drupal_add_region_content doesn't work at the moment.
Comment #11
mustanggb commented