function yandex_metrics_reports_uninstall in Yandex.Metrics 8.2
Same name and namespace in other branches
- 8.3 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_uninstall()
- 6.2 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_uninstall()
- 7.3 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_uninstall()
- 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');
}