function tablesort_example_uninstall

Same name in other branches
  1. 3.x modules/tablesort_example/tablesort_example.install \tablesort_example_uninstall()
  2. 7.x-1.x 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

Code

function tablesort_example_uninstall() {
    $db_connection = \Drupal::database();
    $db_connection->schema()
        ->dropTable('tablesort_example');
}