function adsense_uninstall in Google AdSense integration 7
Same name and namespace in other branches
- 5.3 adsense.install \adsense_uninstall()
- 5 adsense.install \adsense_uninstall()
- 5.2 adsense.install \adsense_uninstall()
- 6 adsense.install \adsense_uninstall()
Implements hook_uninstall().
File
- ./
adsense.install, line 44 - Install file of the adsense module.
Code
function adsense_uninstall() {
variable_del('adsense_access_pages');
variable_del('adsense_basic_id');
variable_del('adsense_disable');
variable_del('adsense_id_module');
variable_del('adsense_placeholder');
variable_del('adsense_placeholder_text');
variable_del('adsense_secret_language');
variable_del('adsense_test_mode');
variable_del('adsense_unblock_ads');
variable_del('adsense_visibility');
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'adsense\\_ad\\_channel\\_%'");
foreach ($settings as $variable) {
variable_del($variable->name);
}
}