Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 May 2008 at 11:46 UTC
Updated:
30 May 2008 at 18:13 UTC
What's the equivalent of views_get_view in Views 2.0??
Comments
Comment #1
RoboPhred commentedI have not had any experience with 1.0 Views, but are you looking for: views_get_current_view();
See issue #249934: Get view arg data from header.
Comment #2
merlinofchaos commentedIt is still views_get_view().
Comment #3
dennison commentedThank you merlin. I figured that much, but what are the parameters? I could not find any info in the API :(
Comment #4
dennison commentedSorry! I meant views_build_view!!!
Comment #5
dennison commentedResetting status to active. Help :(
Comment #6
RoboPhred commentedAgain, knowing nothing of Views 1, I am assuming that views_build_view would create the needed output to display a view on a page.
In that case, here is an example taken from #259034: Passing number of items to display per page as arguments and tweaked.
Comment #7
merlinofchaos commented1) Please, there is no need for the extra ! and ?s -- it reads like you're panicked or something, and if you're panicked while working with a beta whose API has changed a lot, you're in the wrong line of work.
2) See here: http://groups.drupal.org/node/10129
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.