function performance_clear_form_confirm_submit in Performance Logging and Monitoring 6
Same name and namespace in other branches
- 7 performance.module \performance_clear_form_confirm_submit()
Clear data store confirm form submit handler.
1 string reference to 'performance_clear_form_confirm_submit'
- performance_clear_form_confirm in ./
performance.module - Clear data store confirm form callback.
File
- ./
performance.module, line 1249 - 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_confirm_submit($form, &$form_state) {
$stores = performance_data_stores();
$store = $form_state['storage']['store'];
call_user_func('performance_clear_' . $store);
drupal_set_message(t('Performance statistics collected in %store have been cleared.', array(
'%store' => $stores[$store]['#name'],
)));
}