function heartbeat_comments_node_delete_confirm in Heartbeat 6.4
Confirmation page to delete a node comment.
Parameters
$form_state:
$cid:
1 string reference to 'heartbeat_comments_node_delete_confirm'
- heartbeat_comments_menu in modules/
heartbeat_comments/ heartbeat_comments.module - Implementation of hook_menu().
File
- modules/
heartbeat_comments/ heartbeat_comments.module, line 928 - heartbeat_comments.module Heartbeat comments can come with two possible
Code
function heartbeat_comments_node_delete_confirm(&$form_state, $cid) {
$form = array(
'cid' => array(
'#type' => 'hidden',
'#value' => $cid,
),
'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 comment?'), $_GET['destination'], t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}