statistics_block_info

Versions
7
statistics_block_info()

Implements hook_block_info().

Code

modules/statistics/statistics.module, line 301

<?php
function statistics_block_info() {
  if (variable_get('statistics_count_content_views', 0)) {
    $blocks['popular']['info'] = t('Popular content');
    // Too dynamic to cache.
    $blocks['popular']['cache'] = DRUPAL_NO_CACHE;
    return $blocks;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.