function statistics_update_index
statistics_update_index()
Implements hook_update_index().
File
- modules/statistics/statistics.module, line 462
- Logs and displays access statistics for a site.
Code
function statistics_update_index() { variable_set('node_cron_views_scale', 1.0 / max(1, db_query('SELECT MAX(totalcount) FROM {node_counter}')->fetchField())); }
© 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_update_index/7.x