The option Use a graphical replacement for "@" is required which causes validation errors if not selected and checkbox_validate module is enabled.

<?php
      $form['spamspan_settings']['spamspan_use_graphic'] = array(
        '#type' => 'checkbox',
        '#title' => t('Use a graphical replacement for "@"'),
        '#default_value' => variable_get('spamspan_use_graphic', 0),
        # Drupal does not validate checkboxes natively
//        '#required' => TRUE, 
        '#description' => t('Replace "@" with a graphical representation when javascript is disabled (and ignore the setting "Replacement for @" above).')
        );
?>
CommentFileSizeAuthor
#1 graph_replacement_error.PNG6.8 KBionmedia

Comments

ionmedia’s picture

StatusFileSize
new6.8 KB

i have a error than try to save filter settings with spamspan enabled and checkbox uncheked.

how i can fix it ? (anyway, sure with spamspan enabled)

error that the graphical replacement not correctly work with tcpdf in print module.

here is printscreen, there the lines braked

lakka’s picture

Status: Active » Closed (duplicate)

Duplicate of #356425 (which is about to be fixed)