You are here

function image_captcha_settings_form_submit in CAPTCHA 7

Same name and namespace in other branches
  1. 6.2 image_captcha/image_captcha.admin.inc \image_captcha_settings_form_submit()

Submit function for image_captcha configuration form.

1 string reference to 'image_captcha_settings_form_submit'
image_captcha_settings_form in image_captcha/image_captcha.admin.inc
Configuration form for image_captcha.

File

image_captcha/image_captcha.admin.inc, line 370
Functions for administration/settings interface.

Code

function image_captcha_settings_form_submit($form, &$form_state) {
  if (!isset($form['image_captcha_font_settings']['no_ttf_support'])) {

    // Filter the image_captcha fonts array to pick out the selected ones.
    $fonts = array_filter($form_state['values']['image_captcha_fonts']);
    variable_set('image_captcha_fonts', $fonts);
  }
}