| 1 |
<?php |
<?php |
| 2 |
/* |
/* |
| 3 |
* $Id: hof.module,v 1.11 2007/03/23 01:37:01 syscrusher Exp $ |
* $Id: hof.module,v 1.12 2008/12/08 04:19:46 syscrusher Exp $ |
| 4 |
* |
* |
| 5 |
* Hall-Of-Fame is a module that reports summary statistics for a Drupal |
* Hall-Of-Fame is a module that reports summary statistics for a Drupal |
| 6 |
* web site, with an emphasis on reports that are of interest to visitors |
* web site, with an emphasis on reports that are of interest to visitors |
| 629 |
* Node statistics (most popular) |
* Node statistics (most popular) |
| 630 |
*/ |
*/ |
| 631 |
function _hof_page_section_node() { |
function _hof_page_section_node() { |
| 632 |
|
if (! module_exists('statistics')) { |
| 633 |
|
$html = t('<p>The <code>statistics</code> module is not installed or is disabled. Read counts are not available unless this is corrected.</p>'); |
| 634 |
|
return $html; |
| 635 |
|
} |
| 636 |
|
if (! variable_get('statistics_count_content_views', FALSE)) { |
| 637 |
|
$html = t('<p>The <code>statistics</code> module is installed, but read counts are not enabled. Correct this in the Access Log Settings page.</p>'); |
| 638 |
|
return $html; |
| 639 |
|
} |
| 640 |
$popular_limit = variable_get('hof_item_count', 5); |
$popular_limit = variable_get('hof_item_count', 5); |
| 641 |
// Do the interval calculations |
// Do the interval calculations |
| 642 |
$pops = array(); |
$pops = array(); |