function simpleads_uninstall in SimpleAds 7
Same name and namespace in other branches
- 7.2 simpleads.install \simpleads_uninstall()
Implements hook_uninstall().
File
- ./
simpleads.install, line 548
Code
function simpleads_uninstall() {
field_delete_field('field_ad_image');
field_delete_field('field_ad_flash');
field_delete_field('field_ad_text');
field_delete_field('field_ad_type');
field_delete_field('field_ad_url');
field_delete_field('field_ad_category');
field_delete_field('field_ad_start_date');
field_delete_field('field_ad_end_date');
field_delete_field('field_ad_url_taget');
field_delete_field('field_ad_status');
$vid = db_select('taxonomy_vocabulary', 'tv')
->fields('tv', array(
'vid',
))
->condition('machine_name', 'ad_groups')
->execute()
->fetchField();
taxonomy_vocabulary_delete($vid);
variable_del('simpleads_last_aggregation_time');
variable_del('simpleads_filters');
variable_del('menu_options_simpleads');
variable_del('node_options_simpleads');
variable_del('comment_simpleads');
node_types_rebuild();
}