function heartbeat_delete_logs_confirm_submit in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 heartbeat.admin.inc \heartbeat_delete_logs_confirm_submit()
Handler for wipe confirmation
File
- ./
heartbeat.admin.inc, line 584
Code
function heartbeat_delete_logs_confirm_submit($form, &$form_state) {
db_query("DELETE FROM {heartbeat_activity}");
$form_state['redirect'] = 'admin/settings/heartbeat/settings';
drupal_set_message('All messages have been deleted');
}