You are here

adsense_search.install in Google AdSense integration 7

Install file of the adsense_search module.

File

old/search/adsense_search.install
View source
<?php

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

/**
 * Implements hook_uninstall().
 */
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);
  }
}

Functions

Namesort descending Description
adsense_search_uninstall Implements hook_uninstall().