function tablesort_example_uninstall in Examples for Developers 3.x
Same name and namespace in other branches
- 8 tablesort_example/tablesort_example.install \tablesort_example_uninstall()
- 7 tablesort_example/tablesort_example.install \tablesort_example_uninstall()
Implements hook_uninstall().
It's good to clean up after ourselves.
Related topics
File
- modules/
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');
}