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);
  $format_output = TRUE;
  
    // 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...is it the syntax? Or am I setting them wrong?

Thanks...

Comments

dmcfaul’s picture

*bump*
anyone familiar with this?

nevets’s picture

I am guessing you want

$args = array('', '210');
dmcfaul’s picture

works, thanks...