0

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?

views Global Result Sumary

tinohuda
  • 1
  • 1

1 Answers1

0

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.

Community
  • 1
  • 1
tinohuda
  • 1
  • 1