function heartbeat_delete_log_confirm_submit in Heartbeat 7
Same name and namespace in other branches
- 6.4 heartbeat.pages.inc \heartbeat_delete_log_confirm_submit()
Handler for wipe confirmation
File
- ./
heartbeat.pages.inc, line 306 - Separate codefile for page displays
Code
function heartbeat_delete_log_confirm_submit($form, &$form_state) {
// Make sure there is a redirect instead of delivering a page not found.
if (!isset($form_state['redirect'])) {
$form_state['redirect'] = '<front>';
}
// Set the flag so the form knows it's been executed.
$form_state['executed'] = TRUE;
//$form_state['complete'] = TRUE;
if (!empty($form_state['uaid'])) {
// Delete the activity message.
heartbeat_activity_delete(array(
$form_state['uaid'],
));
}
}