Category: Tips & Tricks

Be Tech-Savvy

Drupal 6 Views embeding and passing filters

Load a view: <?php $view = views_get_view(‘view_name’); ?> Initalize it and add arguments. Fiddle with options as needed: <?php $view->set_display(‘default’); $view->set_arguments(array(‘first’, ‘second’)); $view->is_cacheable = FALSE; $view->display->handler->options = 3; $view->display->handler->options …
css.phpCopyright11