function webform_features_uninstall in Webform Features 7.4
Same name and namespace in other branches
- 7.3 webform_features.install \webform_features_uninstall()
Implements hook_uninstall().
File
- ./
webform_features.install, line 134 - 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);
}
}
}