You are here

function node_spamapi_form_alter in Spam 6

Form alter gets its own function so we can reference &$form without causing errors in PHP4 installations. (If we use spamapi, we have to set a default, which PHP4 doesn't support.)

File

content/spam_content_node.inc, line 227
Include file for integration with the node system.

Code

function node_spamapi_form_alter(&$form, &$form_state, $form_id) {
  if (strpos($form_id, '_node_form')) {
    $form['#validate'][] = 'node_spam_scan';
  }
}