comment_multiple_delete_confirm_submit

Versions
4.7
comment_multiple_delete_confirm_submit($form_id, $edit)
5
comment_multiple_delete_confirm_submit($form_id, $form_values)
6 – 7
comment_multiple_delete_confirm_submit($form, &$form_state)

Process comment_multiple_delete_confirm form submissions.

Code

modules/comment/comment.admin.inc, line 216

<?php
function comment_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    comment_delete_multiple(array_keys($form_state['values']['comments']));
    cache_clear_all();
    $count = count($form_state['values']['comments']);
    watchdog('content', 'Deleted @count comments.', array('@count' => $count));
    drupal_set_message(t('Deleted @count comments.', array('@count' => $count)));
  }
  $form_state['redirect'] = 'admin/content/comment';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.