function heartbeat_delete_log_confirm in Heartbeat 6.4
Same name and namespace in other branches
- 7 heartbeat.pages.inc \heartbeat_delete_log_confirm()
Menu callback: confirm deleting of logs.
1 string reference to 'heartbeat_delete_log_confirm'
- heartbeat_menu in ./
heartbeat.module - Implementation of hook_menu().
File
- ./
heartbeat.pages.inc, line 165 - Separate codefile for page displays
Code
function heartbeat_delete_log_confirm($form_state, $uaid) {
$form = array(
'uaid' => array(
'#type' => 'value',
'#value' => $uaid,
),
'redirect_path' => array(
'#type' => 'hidden',
'#value' => isset($_GET['destination']) ? $_GET['destination'] : $_SERVER['HTTP_REFERER'],
),
);
return confirm_form($form, t('Are you sure you want to delete this message?'), $_GET['destination'], t('This action can not be undone.'), t('Delete'), t('Cancel'));
}