Wednesday, June 23, 2010

Count the number of Execution of a view before it executes - Drupal

it will count the nuber of execution of a view file in drupal, before it goes on execution.
<?php
$view = views_get_current_view();
$view->execute();
print $count = count( $view->result );
?>

No comments:

Post a Comment