function adsense_managed_uninstall in Google AdSense integration 7
Same name and namespace in other branches
- 5.3 managed/adsense_managed.install \adsense_managed_uninstall()
- 6 managed/adsense_managed.install \adsense_managed_uninstall()
Implements hook_uninstall().
File
- managed/
adsense_managed.install, line 11 - Install file of the adsense_managed module.
Code
function adsense_managed_uninstall() {
variable_del('adsense_managed_async');
variable_del('adsense_managed_number_blocks');
variable_del('adsense_managed_page_level_ads_enabled');
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'adsense\\_managed\\_ad\\_block\\_%'");
foreach ($settings as $variable) {
variable_del($variable->name);
}
}