You are here

adsense_managed.install in Google AdSense integration 7

Same filename and directory in other branches
  1. 5.3 managed/adsense_managed.install
  2. 6 managed/adsense_managed.install

Install file of the adsense_managed module.

File

managed/adsense_managed.install
View source
<?php

/**
 * @file
 * Install file of the adsense_managed module.
 */

/**
 * Implements hook_uninstall().
 */
function adsense_managed_uninstall() {
  variable_del('adsense_managed_async');
  variable_del('adsense_managed_number_blocks');
  variable_del('adsense_managed_page_level_ads_enabled');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'adsense\\_managed\\_ad\\_block\\_%'");
  foreach ($settings as $variable) {
    variable_del($variable->name);
  }
}

Functions

Namesort descending Description
adsense_managed_uninstall Implements hook_uninstall().