Revision: 37436
Updated Code
at December 10, 2010 07:00 by karmacode
Updated Code
$view = views_get_view('questions'); $view->set_arguments(array('keys' => $_GET['keys'])); $view->build('default'); $view->execute(); /** OR **/ $my_content_view = views_get_view('manage_my_content'); $my_content_view->set_arguments(array($user->uid)); $my_content_view->build('page_2'); $my_content_view->execute('page_2');
Revision: 37435
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 10, 2010 04:13 by karmacode
Initial Code
$view = views_get_view('questions'); $view->set_arguments(array('keys' => $_GET['keys'])); $view->build('default'); $view->execute();
Initial URL
Initial Description
Initial Title
Executing a view programmatically
Initial Tags
drupal
Initial Language
PHP