You are here

function google_adwords_uninstall in Google AdWords Conversion Tracking 6

Same name and namespace in other branches
  1. 7.2 google_adwords.install \google_adwords_uninstall()

Implementation of hook_uninstall().

File

./google_adwords.install, line 23

Code

function google_adwords_uninstall() {

  // Remove variables
  db_query('DELETE FROM {variable} WHERE name LIKE "google_adwords_%"');

  // Remove table
  $deleted = drupal_uninstall_schema('google_adwords');
  if ($deleted) {
    drupal_set_message(t('Google AdWords module has been uninstalled successfully.'));
  }
  else {
    drupal_set_message(t('Table removal for the Google AdWords module was unsuccessful. The tables may need to be uninstalled by hand. See google_adwords.install file for a list of the uninstall queries.'), 'error');
  }
  return;
}