You are here

function adsense_uninstall in Google AdSense integration 6

Same name and namespace in other branches
  1. 5.3 adsense.install \adsense_uninstall()
  2. 5 adsense.install \adsense_uninstall()
  3. 5.2 adsense.install \adsense_uninstall()
  4. 7 adsense.install \adsense_uninstall()

Implementation of hook_uninstall().

File

./adsense.install, line 20
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_section_targeting');
  variable_del('adsense_test_mode');
  variable_del('adsense_visibility');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'adsense\\_ad\\_channel\\_%'");
  while ($variable = db_fetch_object($settings)) {
    variable_del($variable->name);
  }
}