You are here

function webform_features_uninstall in Webform Features 7.3

Same name and namespace in other branches
  1. 7.4 webform_features.install \webform_features_uninstall()

Implements hook_uninstall().

File

./webform_features.install, line 129
Alters webform's schema to add things needed to make export reliable.

Code

function webform_features_uninstall() {

  // Remove machine_name fields to the weform & webform_component tables.
  $table_names = array(
    'webform',
    'webform_component',
  );
  $schema = array();
  foreach ($table_names as $table_name) {
    $schema[$table_name] = array(
      'fields' => array(),
    );
  }
  webform_features_schema_alter($schema);
  foreach ($table_names as $table_name) {
    foreach ($schema[$table_name]['fields'] as $name => $spec) {
      db_drop_field($table_name, $name);
    }
  }
}