You are here

function spam_comment_overview_submit in Spam 5

Form API hook; submit spam_comment_overview() form.

File

./spam.module, line 2732

Code

function spam_comment_overview_submit($form_id, $form_values) {
  $operation = spam_comment_operations($form_values['operation']);
  if ($operation) {
    foreach ($form_values['comments'] as $cid => $value) {
      if ($value) {
        $operation($cid);
      }
    }
    drupal_set_message(t('Comments have been updated.'));
  }
  return 'admin/content/comment/list/spam';
}