Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I was stuck with empty results until I added "$view['view']->live_preview = TRUE;" in viewreference_get_view().
Am I doing something wrong?
The code looks now like this:
$view['view']->live_preview = TRUE; // without this my results are always empty
$view['embed'] = $view['view']->preview($view['display'], $view['args']);
Thanks,
Luxian
Comments
Comment #1
danielb CreditAttribution: danielb commentedSorry I'm unfamiliar with that issue.