You are here

function statistics_block_info in Drupal 7

Implements hook_block_info().

File

modules/statistics/statistics.module, line 325
Logs and displays access statistics for a site.

Code

function statistics_block_info() {
  $blocks = array();
  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;
}