You are here

function yandex_metrics_reports_uninstall in Yandex.Metrics 8.3

Same name and namespace in other branches
  1. 8.2 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_uninstall()
  2. 6.2 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_uninstall()
  3. 7.3 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_uninstall()
  4. 7.2 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_uninstall()

Implements hook_uninstall().

File

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

Code

function yandex_metrics_reports_uninstall() {

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