You are here

function heartbeat_comments_delete_confirm_submit in Heartbeat 6.4

Same name and namespace in other branches
  1. 7 modules/heartbeat_comments/heartbeat_comments.module \heartbeat_comments_delete_confirm_submit()

Submit callback te delete a heartbeat comment.

_state

Parameters

$form:

File

modules/heartbeat_comments/heartbeat_comments.module, line 887
heartbeat_comments.module Heartbeat comments can come with two possible

Code

function heartbeat_comments_delete_confirm_submit($form, &$form_state) {
  _heartbeat_comments_delete($form_state['values']['hcid']);
  $form_state['redirect'] = isset($_GET['destination']) ? $_GET['destination'] : $form_state['values']['redirect_path'];
  drupal_set_message('Comment deleted.');
}