You are here

function spam_node_overview_submit in Spam 5

Submit code for the spam_node_overview form/function

File

./spam.module, line 2793

Code

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