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.
$view->execute();
print $count = count( $view->result );
<?php
$view = views_get_current_view();$view->execute();
print $count = count( $view->result );
?>
Comments
Post a Comment