You are here

function securitytxt_sign_form_submit in Security.txt 7

Security.txt sign form submit.

File

./securitytxt.admin.inc, line 238

Code

function securitytxt_sign_form_submit($form, &$form_state) {
  $old_settings = variable_get('securitytxt');
  $submitted_settings = array();
  $submitted_settings['signature_text'] = $form_state['values']['signature_text'];
  $updated_settings = array_merge($old_settings, $submitted_settings);
  variable_set('securitytxt', $updated_settings);
}