You are here

function simpleads_campaigns_uninstall in SimpleAds 7

Same name and namespace in other branches
  1. 7.2 modules/simpleads_campaigns/simpleads_campaigns.install \simpleads_campaigns_uninstall()

Implements hook_uninstall().

File

modules/simpleads_campaigns/simpleads_campaigns.install, line 387

Code

function simpleads_campaigns_uninstall() {
  field_delete_field('field_adcamp_list');
  field_delete_field('field_adcamp_impression');
  field_delete_field('field_adcamp_impressions');
  field_delete_field('field_adcamp_click');
  field_delete_field('field_adcamp_clicks');
  field_delete_field('field_adcamp_day');
  field_delete_field('field_adcamp_days');
  field_delete_field('field_adcamp_start');

  // Remove variables.
  variable_del('menu_options_simpleads_campaign');
  variable_del('node_options_simpleads_campaign');
  variable_del('comment_simpleads_campaign');
}