You are here

function heartbeat_messages_multiple_delete_confirm_submit in Heartbeat 6.4

Process comment_multiple_delete_confirm form submissions.

Perform the actual comment deletion.

File

./heartbeat.admin.inc, line 184
Admnistration tasks for heartbeat.

Code

function heartbeat_messages_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    foreach ($form_state['values']['heartbeat-activity'] as $uaid => $value) {
      if ($value) {
        _heartbeat_activity_delete($uaid);
      }
    }
    drupal_set_message(t('The messages have been deleted.'));
  }
  $form_state['redirect'] = 'admin/content/heartbeat';
}