How to get all records from a Display View in Drupal 6 via Code
Submitted by enzo on Wed, 12/08/2010 - 09:32
Hello folks.
If you for some strange reason need to get how many records a view has in total without pagination, and you have the option to do this with php code, check the snipet code listed below.
<?php
$view = views_get_view('my_demo_view');
$view->get_total_rows = true;
$view->set_display('default');
$view->execute();
print "Total Records in my demo view:" . $view->total_rows;
?>
Enjoy it
enzo







