You are here

function spam_reported_nodes_overview_submit in Spam 5

Submit code for the spam_reported_nodes_overview form/function

File

./spam.module, line 2429

Code

function spam_reported_nodes_overview_submit($form_id, $form_values) {
  $operation = spam_reported_nodes_operations($form_values['operation']);
  if ($operation) {
    foreach ($form_values['nodes'] as $cid => $value) {
      if ($value) {
        $operation('node', $cid);
      }
    }
    drupal_set_message(t('Nodes have been updated.'));
  }
}