I know that in Views Drupal 7 module I can print out the count results by adding "Global Result Summary" to header or footer.
But how to print only those count result on a block?
I know that in Views Drupal 7 module I can print out the count results by adding "Global Result Summary" to header or footer.
But how to print only those count result on a block?
Oh i got the answer from: Drupal return number of results in a View
$view = views_get_view('viewname');
$view->set_display('block_1');
$view->render();
print sizeof($view->result);
Thanks.