You are here

function amazon_uninstall in Amazon Product Advertisement API 6

Same name and namespace in other branches
  1. 7.2 amazon.install \amazon_uninstall()
  2. 7 amazon.install \amazon_uninstall()

Implements hook_uninstall().

File

./amazon.install, line 13

Code

function amazon_uninstall() {
  drupal_uninstall_schema('amazon');
  $variables = preg_split('/\\s+/', "amazon_media_data\n    amazon_default_image\n    amazon_default_image_large_preset\n    amazon_default_image_medium_preset\n    amazon_default_image_small_preset\n    amazon_locale\n    amazon_associate_setting\n    amazon_custom_associate_id\n    amazon_aws_access_key\n    amazon_aws_secret_access_key\n    amazon_refresh_schedule\n    amazon_core_data");
  foreach ($variables as $var) {
    variable_del($var);
  }
}