You are here

function webform_ajax_uninstall in Webform Ajax 7.2

Same name and namespace in other branches
  1. 7 webform_ajax.install \webform_ajax_uninstall()

Implements hook_uninstall().

File

./webform_ajax.install, line 43
Webform AJAX install file.

Code

function webform_ajax_uninstall() {

  // Update schema. Drop our additional fields.
  $schema = array(
    'webform' => array(),
  );
  webform_ajax_schema_alter($schema);
  foreach ($schema as $table => $table_def) {
    foreach ($table_def['fields'] as $field => $spec) {
      db_drop_field($table, $field);
    }
  }
}