function heartbeat_delete_logs_confirm_submit in Heartbeat 6.4
Same name and namespace in other branches
- 6.3 heartbeat.admin.inc \heartbeat_delete_logs_confirm_submit()
Handler for wipe confirmation
File
- ./
heartbeat.admin.inc, line 1492 - Admnistration tasks for heartbeat.
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');
}