You are here

function yamlform_update_8021 in YAML Form 8

Issue #2757981: Improve form node integration.

File

includes/yamlform.update.inc, line 565
YAML Form module update hooks.

Code

function yamlform_update_8021(&$sandbox) {

  // Clear entity type and id that are pointing to the submission's form.
  \Drupal::database()
    ->query("UPDATE {yamlform_submission} SET entity_type=NULL, entity_id=NULL WHERE entity_type='yamlform' AND yamlform_id=entity_id");
}