You are here

function adsense_managed_uninstall in Google AdSense integration 6

Same name and namespace in other branches
  1. 5.3 managed/adsense_managed.install \adsense_managed_uninstall()
  2. 7 managed/adsense_managed.install \adsense_managed_uninstall()

Implementation of 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_number_blocks');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'adsense\\_managed\\_ad\\_block\\_%'");
  while ($variable = db_fetch_object($settings)) {
    variable_del($variable->name);
  }
}