You are here

function FormDefaultsHelper::deleteForm in Form Defaults 8

1 call to FormDefaultsHelper::deleteForm()
FormDefaultsHelper::saveForm in src/Helper/FormDefaultsHelper.php

File

src/Helper/FormDefaultsHelper.php, line 51

Class

FormDefaultsHelper
@class FormDefaultHelper

Namespace

Drupal\Formdefaults\Helper

Code

function deleteForm($formid) {
  Database::getConnection()
    ->delete('formdefaults_forms')
    ->condition('formid', $formid)
    ->execute();
}