function tablesort_example_uninstall

Same name and namespace in other branches
  1. 7.x-1.x tablesort_example/tablesort_example.install \tablesort_example_uninstall()
  2. 4.0.x modules/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');
}