You are here

function statspro_tools in Statistics Pro 6.2

Same name and namespace in other branches
  1. 6 statspro.tools.inc \statspro_tools()

@file Include file for tools page

1 string reference to 'statspro_tools'
statspro_menu in ./statspro.module
Implementation of hook_menu().

File

./statspro_tools.inc, line 9
Include file for tools page

Code

function statspro_tools() {
  $form = array();
  $form['intro'] = array(
    '#type' => 'markup',
    '#value' => '<div>' . t('On this page you find useful tools for Statistics maintenance.') . '</div>',
  );
  $form['cron_call_wrapper'] = array(
    '#type' => 'fieldset',
    '#title' => t('Manual cron call'),
  );
  $form['cron_call_wrapper']['intro_cron_call'] = array(
    '#type' => 'markup',
    '#value' => '<div>' . t('Call a cron job run to generate up to date statistics.') . '</div>',
  );
  $form['cron_call_wrapper']['cron_call'] = array(
    '#type' => 'submit',
    '#value' => t('Call cron'),
  );
  $form['reset_stats_wrapper'] = array(
    '#type' => 'fieldset',
    '#title' => t('Reset data'),
  );
  $form['reset_stats_wrapper']['intro_reset_stats'] = array(
    '#type' => 'markup',
    '#value' => '<div>' . t('Clear all Statistics Pro tables.') . '</div>',
  );
  $form['reset_stats_wrapper']['reset_stats'] = array(
    '#type' => 'submit',
    '#value' => t('Reset'),
  );
  return $form;
}