EBSCO provides a Drupal module that will display results from EBSCO on a custom page http://mysite/ebsco/results.
There is a template preprocess function for the page, and a tpl.php file for the page.
Instead of displaying the page, I want to load the results into a custom block. I'm using the API call of
drupal_form_submit('my_form_name', $form_state) to make the submit call. I set the $form_state['variables'] as below before making the call:
// set $form_state array values
$form_state = array();
$form_state['values']['lookfor'] = $search;
$form_state['values']['type'] = 'AllFields';
$form_state['values']['op'] = t('Search');
I don't get any errors when I check after the submit with form_get_errors(), but I can't find any results to pull into the custom block.
Has anyone else tried to do something similar to this with the EBSCO module?