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 );
?>

Comments

Popular posts from this blog

How to Reset Root Password in Drupal 7 with phpMyAdmin

Drupal - Hiding field group and its Children