You are here

function campaignmonitor_uninstall in Campaign Monitor 7

Same name and namespace in other branches
  1. 5.2 campaignmonitor.install \campaignmonitor_uninstall()
  2. 5 campaignmonitor.install \campaignmonitor_uninstall()
  3. 6.3 campaignmonitor.install \campaignmonitor_uninstall()
  4. 6 campaignmonitor.install \campaignmonitor_uninstall()
  5. 6.2 campaignmonitor.install \campaignmonitor_uninstall()

Uninstall the variables used by the module.

File

./campaignmonitor.install, line 11
Handles the uninstall and update functions for the module.

Code

function campaignmonitor_uninstall() {

  // Delete all lists.
  db_delete('variable')
    ->condition('name', 'campaignmonitor_list_', 'LIKE')
    ->execute();
  variable_del('campaignmonitor_account');
  variable_del('campaignmonitor_general');
}