You are here

function ga_stats_update_counts_submit in Google Analytics Statistics 7

Same name and namespace in other branches
  1. 7.2 ga_stats.admin.inc \ga_stats_update_counts_submit()

Submit callback to update the statistics data.

File

./ga_stats.admin.inc, line 148

Code

function ga_stats_update_counts_submit($form, &$form_state) {
  if (ga_stats_update_counts()) {
    drupal_set_message(t('Successfully retrieved Analytics data.'));
    drupal_set_message(t('The next scheduled retrieval is on !date', array(
      '!date' => date('r', ga_stats_data_expiration_date()),
    )));
  }
}