You are here

function webform_encrypt_form_webform_admin_settings_alter in Webform Encrypt 6

Same name and namespace in other branches
  1. 7 webform_encrypt.module \webform_encrypt_form_webform_admin_settings_alter()

Implementation of hook_form_FORM_ID_alter()

File

./webform_encrypt.module, line 18
Main module file for the Webform Encrypt module.

Code

function webform_encrypt_form_webform_admin_settings_alter(&$form, $form_state) {

  // Add our config options to the webform settings page.
  $form['encrypt'] = array(
    '#type' => 'fieldset',
    '#title' => t('Webform Encrypt'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['encrypt']['webform_encrypt_match_user'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable email to user matching'),
    '#description' => t('If enabled, every time webform sends an email, it will attempt to find a user that matches the email address the mail will be sent to in order to correctly determine permissions.'),
    '#default_value' => variable_get('webform_encrypt_match_user', 0),
  );
}