function performance_clear_form_submit in Performance Logging and Monitoring 7.2
Same name and namespace in other branches
- 6.2 performance.module \performance_clear_form_submit()
- 6 performance.module \performance_clear_form_submit()
- 7 performance.module \performance_clear_form_submit()
Clear logs form submit handler.
File
- ./
performance.module, line 706 - 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;
}
$form_state['redirect'] = array(
$form_state['values']['redirect'],
);
}