You are here

function newsletter_subscriber_uninstall in Newsletter 7.2

Implements hook_uninstall().

File

modules/subscriber/newsletter_subscriber.install, line 65
Sets up the base table for newsletter subscribers and a table to store information about the subscriber types, install, uninstall and update functions for Newsletter subscriber module.

Code

function newsletter_subscriber_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'newsletter_subscriber_%'");
  foreach (field_read_instances(array(
    'entity_type' => 'newsletter_subscriber',
  )) as $instance) {
    field_delete_instance($instance);
  }
  field_purge_batch(10);
}