You are here

function piwik_stats_cron in Piwik Statistic Integration 7

Same name and namespace in other branches
  1. 7.2 piwik_stats.module \piwik_stats_cron()

Implements hook_cron().

If set, statistical piwik data will be refreshed on cron run.

2 string references to 'piwik_stats_cron'
piwik_stats_form_piwik_admin_settings_form_alter in ./piwik_stats.module
Implements hook_form_FORM_ID_alter().
piwik_stats_uninstall in ./piwik_stats.install
Implements hook_uninstall().

File

./piwik_stats.module, line 222
Integrates piwik statistics per node.

Code

function piwik_stats_cron() {
  if (variable_get('piwik_stats_cron', FALSE)) {
    piwik_stats_request_data(variable_get('piwik_stats_token_auth', ''), variable_get('piwik_site_id', 0), variable_get('piwik_url_http', ''), variable_get('piwik_stats_period', 'year'));
  }
}