function content_synchronizer_uninstall in Content Synchronizer 8.2
Same name and namespace in other branches
- 8 content_synchronizer.install \content_synchronizer_uninstall()
Delete tables.
File
- ./
content_synchronizer.install, line 100 - Installation hooks for content_synchronizer module.
Code
function content_synchronizer_uninstall() {
foreach (content_synchronizer_get_schema() as $table => $definition) {
try {
if (\Drupal::database()
->schema()
->tableExists($table)) {
\Drupal::database()
->schema()
->dropTable($table);
}
} catch (\Exception $e) {
echo $e
->getMessage();
}
}
}