You are here

function statspro_reset_stats in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 statspro.module \statspro_reset_stats()

Reset Statistics Pro.

2 calls to statspro_reset_stats()
statspro_tools_submit in ./statspro.tools.inc
statspro_update_1 in ./statspro.install

File

./statspro.module, line 177
Main module of Statistcs pro module

Code

function statspro_reset_stats() {
  variable_set('statspro_last_run', 0);
  db_query('TRUNCATE TABLE {statspro}');
  drupal_set_message(t('You have to run cron to recreate statistics. !url', array(
    '!url' => l('You can run cron manually.', 'admin/reports/status/run-cron'),
  )));
}