You are here

function webform_civicrm_update_6102 in Webform CiviCRM Integration 7.2

Same name and namespace in other branches
  1. 6.2 webform_civicrm.install \webform_civicrm_update_6102()
  2. 6 webform_civicrm.install \webform_civicrm_update_6102()
  3. 7.5 webform_civicrm.install \webform_civicrm_update_6102()
  4. 7 webform_civicrm.install \webform_civicrm_update_6102()
  5. 7.3 webform_civicrm.install \webform_civicrm_update_6102()
  6. 7.4 webform_civicrm.install \webform_civicrm_update_6102()

Add column for confirm_subscription to webform_civicrm_forms table.

File

./webform_civicrm.install, line 156
Webform CiviCRM module's install, uninstall and upgrade code.

Code

function webform_civicrm_update_6102() {
  $confirm_subscription = array(
    'description' => 'Send confirmation for mailing list subscriptions.',
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field('webform_civicrm_forms', 'confirm_subscription', $confirm_subscription);
}