You are here

function yandex_metrics_uninstall in Yandex.Metrics 7.3

Same name and namespace in other branches
  1. 6.2 yandex_metrics.install \yandex_metrics_uninstall()
  2. 6 yandex_metrics.install \yandex_metrics_uninstall()
  3. 7 yandex_metrics.install \yandex_metrics_uninstall()
  4. 7.2 yandex_metrics.install \yandex_metrics_uninstall()

Implements hook_uninstall().

File

./yandex_metrics.install, line 10
Install, uninstall and update the module.

Code

function yandex_metrics_uninstall() {

  // Delete module variables and clear variables cache.
  db_delete('variable')
    ->condition('name', 'yandex_metrics_%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache_bootstrap');
}