function comment_multiple_delete_confirm


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 comment_multiple_delete_confirm($form, &$form_state)
cle7 comment_multiple_delete_confirm($form, &$form_state)
elmsmedia7 comment_multiple_delete_confirm($form, &$form_state)
icor7 comment_multiple_delete_confirm($form, &$form_state)
meedjum_blog7 comment_multiple_delete_confirm($form, &$form_state)
mooc7 comment_multiple_delete_confirm($form, &$form_state)

List the selected comments and verify that the admin wants to delete them.


$form_state: An associative array containing the current state of the form.

Return value

TRUE if the comments should be deleted, FALSE otherwise.

See also


Related topics

1 string reference to 'comment_multiple_delete_confirm'
comment_admin in modules/comment/
Menu callback; present an administrative comment listing.


modules/comment/, line 195
Admin page callbacks for the comment module.


function comment_multiple_delete_confirm($form, &$form_state) {
  $edit = $form_state['input'];

  $form['comments'] = array(
    '#prefix' => '<ul>',
    '#suffix' => '</ul>',
    '#tree' => TRUE,
  // array_filter() returns only elements with actual values.
  $comment_counter = 0;
  foreach (array_filter($edit['comments']) as $cid => $value) {
    $comment = comment_load($cid);
    if (is_object($comment) && is_numeric($comment->cid)) {
      $subject = db_query('SELECT subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchField();
      $form['comments'][$cid] = array(
        '#type' => 'hidden',
        '#value' => $cid,
        '#prefix' => '<li>',
        '#suffix' => check_plain($subject) . '</li>',
  $form['operation'] = array(
    '#type' => 'hidden',
    '#value' => 'delete',

  if (!$comment_counter) {
    drupal_set_message(t('There do not appear to be any comments to delete, or your selected comment was deleted by another administrator.'));
  else {
    return confirm_form($form, t('Are you sure you want to delete these comments and all their children?'), 'admin/content/comment', t('This action cannot be undone.'), t('Delete comments'), t('Cancel'));



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.