You are here

function commerce_webform_update_7101 in Commerce Webform 7

Same name and namespace in other branches
  1. 8 commerce_webform.install \commerce_webform_update_7101()
  2. 7.2 commerce_webform.install \commerce_webform_update_7101()

Add an extra column to the webform table to record if submitting the webform should create a new order or add to the basket.

File

./commerce_webform.install, line 58
Install and uninstall functions for commerce_webform

Code

function commerce_webform_update_7101(&$sandbox) {

  // Run the install function, it has only just been added.
  $schema['webform'] = array();
  commerce_webform_schema_alter($schema);
  db_add_field('commerce_webform_new_order', $schema['webform']['fields']['commerce_webform_new_order']);
}