You are here

function statspro_install in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 statspro.install \statspro_install()

Implementation of hook_install().

File

./statspro.install, line 12
Install file for statistics pro module

Code

function statspro_install() {
  variable_set('statspro_last_run', 0);
  variable_set('statspro_start', 0);
  variable_set('statspro_end', 0);
  variable_set('statspro_term_rebuild', TRUE);
  drupal_install_schema('statspro');
  drupal_set_message(st('You have to run cron to recreate statistics. !url', array(
    '!url' => l(st('You can run cron manually.'), 'admin/reports/status/run-cron'),
  )));
}