You are here

function visitors_geoip_uninstall in Visitors 8.2

Same name and namespace in other branches
  1. 8 visitors_geoip.install \visitors_geoip_uninstall()
  2. 7.2 visitors_geoip.install \visitors_geoip_uninstall()
  3. 7 visitors_geoip.install \visitors_geoip_uninstall()

Implements hook_uninstall().

File

./visitors_geoip.install, line 247
Install/uninstall visitors geoip module.

Code

function visitors_geoip_uninstall() {
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_continent_code');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_country_code');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_country_code3');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_country_name');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_region');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_city');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_postal_code');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_latitude');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_longitude');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_dma_code');
  \Drupal::database()
    ->schema()
    ->dropField('visitors', 'visitors_area_code');
}