Posted by drupal7er on October 28, 2011 at 7:26pm
In the live preview I can successfully pass the uid (the filter is set to uid) but doing that programmatically returns an empty array.
$results = views_get_view_result( 'my_view', 'default', array( 1 ) );
How should I pass the arguments here? Thanks.
Comments
Not passing args as array
Not passing args as array seems to have worked.
$results = views_get_view_result( 'my_view', 'default', 1 );
Not passings args as an array worked 4 me 2
This worked for me too on Drupal 6.22 and Views 2 :)