How to retrieve drupal views content using PHP Code

use the following php code for retrieve drupal 6 views content:

$display = 'page_1'; // 'page_2' or 'block_1' etc
$view = views_get_view('view_name');
$display = $view->execute_display('block_1', $myArg);
print $display['content'];
?>

Comments

Popular posts from this blog

PHP - How to increase size of POST value in php

D8 KernelEvents constants

D8 - Attach file programmatically to a node