function heartbeat_delete_log_confirm_submit in Heartbeat 6.4
Same name and namespace in other branches
- 7 heartbeat.pages.inc \heartbeat_delete_log_confirm_submit()
Handler for wipe confirmation.
File
- ./
heartbeat.pages.inc, line 188 - Separate codefile for page displays
Code
function heartbeat_delete_log_confirm_submit($form, &$form_state) {
if (!is_numeric($form_state['values']['uaid'])) {
return;
}
_heartbeat_activity_delete($form_state['values']['uaid']);
$form_state['redirect'] = isset($_GET['destination']) ? $_GET['destination'] : $form_state['values']['redirect_path'];
drupal_set_message(t('Message deleted'));
}