You are here

function statspro_tools_submit in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 statspro_tools.inc \statspro_tools_submit()

File

./statspro.tools.inc, line 46
Include file for tools page

Code

function statspro_tools_submit($form, &$form_state) {
  switch ($form_state['values']['op']) {
    case t('Call cron'):
      drupal_set_message(t('Cron run called.'));
      drupal_goto('admin/reports/status/run-cron');
      break;
    case t('Reset'):
      drupal_set_message(t('Statistics Pro data cleared.'));
      statspro_reset_stats();
      break;
  }
}