You are here

function performance_clear_form_submit in Performance Logging and Monitoring 6.2

Same name and namespace in other branches
  1. 6 performance.module \performance_clear_form_submit()
  2. 7.2 performance.module \performance_clear_form_submit()
  3. 7 performance.module \performance_clear_form_submit()

Clear logs form submit handler.

File

./performance.module, line 694
Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com

Code

function performance_clear_form_submit($form, &$form_state) {
  switch ($form_state['values']['store']) {
    case 'summary':
      cache_clear_all('*', PERFORMANCE_BIN, TRUE);
      break;
    case 'details':
      performance_clear_details();
      break;
  }
}