You are here

function webform_update_7428 in Webform 7.4

Add a "confidential" option to webforms.

File

./webform.install, line 2322
Webform module install/schema hooks.

Code

function webform_update_7428() {

  // Add confidential column to webform.
  if (!db_field_exists('webform', 'confidential')) {
    $spec = array(
      'description' => 'Boolean value for whether to anonymize submissions.',
      'type' => 'int',
      'size' => 'tiny',
      'not null' => TRUE,
      'default' => 0,
    );
    db_add_field('webform', 'confidential', $spec);
  }
  return t('Webforms may now be configured to anonymize confidential submissions.');
}