function statistics_block_info

Implements hook_block_info().

File

modules/statistics/statistics.module, line 325

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.