function tablesort_example_uninstall in Examples for Developers 8
Same name and namespace in other branches
- 7 tablesort_example/tablesort_example.install \tablesort_example_uninstall()
- 3.x modules/tablesort_example/tablesort_example.install \tablesort_example_uninstall()
Implements hook_uninstall().
It's good to clean up after ourselves.
Related topics
File
- tablesort_example/
tablesort_example.install, line 43 - Install and uninstall functions for the tablesort_example module.
Code
function tablesort_example_uninstall() {
$db_connection = \Drupal::database();
$db_connection
->schema()
->dropTable('tablesort_example');
}