You are here

function webform_encrypt_form_alter in Webform Encrypt 6

Implementation of hook_form_alter().

File

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

Code

function webform_encrypt_form_alter(&$form, &$form_state, $form_id) {

  // When we are editing a webform submission,
  if (strpos($form_id, 'webform_client_form_') === 0 && $form['details']['sid']['#value']) {
    _webform_encrypt_decrypt_nested_values($form['submitted']);
  }
}