function statistics_block_info
statistics_block_info()
Implements hook_block_info().
File
- modules/statistics/statistics.module, line 327
- 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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!statistics!statistics.module/function/statistics_block_info/7.x