Created
July 18, 2011 02:14
-
-
Save claudinec/1088404 to your computer and use it in GitHub Desktop.
Drupal number of results in view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/2973975/drupal-return-number-of-results-in-a-view | |
// what you can do is to activate php for the views header/footer and add the following snippet to it: | |
<?php | |
$view = views_get_current_view(); | |
print $view->total_rows; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or use http://drupal.org/project/views_customfield