function google_analytics_counter_uninstall in Google Analytics Counter 7.3
Same name and namespace in other branches
- 8.3 google_analytics_counter.install \google_analytics_counter_uninstall()
- 7.2 google_analytics_counter.install \google_analytics_counter_uninstall()
Implements hook_uninstall().
File
- ./
google_analytics_counter.install, line 11 - Update, and uninstall functions for the Google Analytics Counter module.
Code
function google_analytics_counter_uninstall() {
$query = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', db_like('google_analytics_counter') . '%', 'LIKE')
->execute();
while ($variable = $query
->fetchAssoc()) {
variable_del($variable['name']);
}
}