Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.8
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2010 at 18:54 UTC
Updated:
19 Oct 2010 at 22:00 UTC
Hi, I'm trying to set the arguments I need for a particular view that I am printing on a page, but it is not working. This is how I call the view:
$view = views_get_view($name);
// Put all arguments and then execute.
$args = array('field_family_value=', 'field_manufacturer_nid[]=210');
$view->set_arguments($args);
And then I use $view->preview() to get the results.
The arguments are not working properly however...I've tried several different variations of they argument array, but no dice.
Any ideas?
Comments
Comment #1
dawehnerYou should use array('', 210) as arguments.
Comment #2
dawehnerAnd you should use preview($display_id = NULL, $args = array());
So if you use the $args as part of the preview call this should be fixed.