You are here

function adsense_cse_uninstall in Google AdSense integration 7

Same name and namespace in other branches
  1. 5.3 cse/adsense_cse.install \adsense_cse_uninstall()
  2. 6 cse/adsense_cse.install \adsense_cse_uninstall()

Implements hook_uninstall().

File

cse/adsense_cse.install, line 11
Install file of the adsense_cse module.

Code

function adsense_cse_uninstall() {
  variable_del('adsense_cse_ad_location');
  variable_del('adsense_cse_color_box_background');
  variable_del('adsense_cse_country');
  variable_del('adsense_cse_encoding');
  variable_del('adsense_cse_frame_width');
  variable_del('adsense_cse_logo');
  variable_del('adsense_cse_number_blocks');
  variable_del('adsense_cse_textbox_length');
  variable_del('adsense_cse_language');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'adsense\\_cse\\_ad\\_block\\_%'");
  foreach ($settings as $variable) {
    variable_del($variable->name);
  }
}