You are here

function _spamspan_admin_settings_form_validate in SpamSpan filter 7

1 string reference to '_spamspan_admin_settings_form_validate'
_spamspan_admin_settings_form_process in ./spamspan_admin.php

File

./spamspan_admin.php, line 279
This module implements the spamspan technique (http://www.spamspan.com ) for hiding email addresses from spambots.

Code

function _spamspan_admin_settings_form_validate(&$form, &$form_state) {
  $settings = $form_state['values']['filters']['spamspan']['settings'];
  $use_form = $settings['use_form'];

  //no trees, see https://www.drupal.org/node/2378437
  unset($settings['use_form']);
  $settings += $use_form;
  $form_state['values']['filters']['spamspan']['settings'] = $settings;
}