Filtering exposed filters with views_get_view_result() function I have built a module so that I can display PDFs with phpwkhtmltopdf. I am currently calling my view data using:

$view = views_get_view_result('course_catalog');


My question is, is there a way to have filter my exposed filters with this function? If not, what is the best way to go about this? --I suppose I could manually filter through the results with PHP, but that hardly seems efficient.
It seems views_get_view_result does not allow setting filters: https://www.drupal.org/node/1428696

Instead of using views_get_view_result, you might try with other functions of the Views API:

$view = views_get_view('course_catalog');
$view-&gt;set_exposed_input($my_exposed_input);
$view-&gt;init_display();
$view-&gt;pre_execute();
$view-&gt;execute();
$result = $view-&gt;result;


You can check the documentation for the set_exposed_input method, and also this related Drupal Answers question, for alternatives: How to change programmatically exposed filters in views