Return to Snippet

Revision: 17523
at September 8, 2009 12:37 by jonathanpglick


Initial Code
$view = views_get_view('links');
$view->set_display('default');
$view->pre_execute();
$view->execute();

Initial URL

                                

Initial Description
If `views_embed_view()` or just `$view->execute()` are called, the default view settings are used (only shows 10 entries, etc.) so we have to call `$view->set_display()` & `$view->pre_execute()`.

Initial Title
Manually execute a view, the right way

Initial Tags
drupal

Initial Language
PHP