function adsense_search_uninstall in Google AdSense integration 7
Same name and namespace in other branches
- 5.3 old/search/adsense_search.install \adsense_search_uninstall()
- 6 old/search/adsense_search.install \adsense_search_uninstall()
Implements hook_uninstall().
File
- old/
search/ adsense_search.install, line 11 - Install file of the adsense_search module.
Code
function adsense_search_uninstall() {
variable_del('adsense_search_button');
variable_del('adsense_search_color_bg');
variable_del('adsense_search_color_border');
variable_del('adsense_search_color_box_background');
variable_del('adsense_search_color_box_text');
variable_del('adsense_search_color_light_url');
variable_del('adsense_search_color_logo_bg');
variable_del('adsense_search_color_text');
variable_del('adsense_search_color_title');
variable_del('adsense_search_color_url');
variable_del('adsense_search_color_visited_url');
variable_del('adsense_search_country');
variable_del('adsense_search_domain_0');
variable_del('adsense_search_domain_1');
variable_del('adsense_search_domain_2');
variable_del('adsense_search_encoding');
variable_del('adsense_search_frame_width');
variable_del('adsense_search_language');
variable_del('adsense_search_logo');
variable_del('adsense_search_number_blocks');
variable_del('adsense_search_safe_mode');
variable_del('adsense_search_textbox_length');
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'adsense\\_search\\_ad\\_block\\_%'");
foreach ($settings as $variable) {
variable_del($variable->name);
}
}