You are here

function heartbeat_activity_delete_all_confirm_submit in Heartbeat 7

Submit callback to delete all activity logged to the table {heartbeat_activity}.

File

modules/heartbeat_ui/heartbeat_ui.admin.inc, line 269

Code

function heartbeat_activity_delete_all_confirm_submit($form, &$form_state) {
  heartbeat_activity_delete(array(), TRUE);
  $form_state['redirect'] = 'admin/structure/heartbeat';
  drupal_set_message(t('All activity has been removed from the database.'));
}