You are here

function lingotek_uninstall in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 6 lingotek.install \lingotek_uninstall()
  2. 7.7 lingotek.install \lingotek_uninstall()
  3. 7.3 lingotek.install \lingotek_uninstall()
  4. 7.4 lingotek.install \lingotek_uninstall()
  5. 7.5 lingotek.install \lingotek_uninstall()
  6. 7.6 lingotek.install \lingotek_uninstall()

Implements hook_uninstall().

File

./lingotek.install, line 37
Installation for Lingotek Community Translation Module.

Code

function lingotek_uninstall() {
  $delete_variables = array(
    'lingotek_account_enterprise',
    'lingotek_account_plan',
    'lingotek_account_status',
    'lingotek_activation_email',
    'lingotek_activation_first_name',
    'lingotek_activation_last_name',
    'lingotek_advanced_parsing',
    'lingotek_advanced_xml_config1',
    'lingotek_advanced_xml_config2',
    'lingotek_cms_tag',
    'lingotek_community_identifier',
    'lingotek_guid',
    'lingotek_login_id',
    'lingotek_password',
    'lingotek_notifications_callback',
    'lingotek_oauth_consumer_id',
    'lingotek_oauth_consumer_secret',
    'lingotek_project',
    'lingotek_setup_complete',
    'lingotek_source_language',
    'lingotek_target_languages',
    'lingotek_translate_fields',
    'lingotek_vault',
    'lingotek_workbench_tagged_users',
    'lingotek_workflow',
  );
  foreach ($delete_variables as $variable) {
    variable_del($variable);
  }
  db_drop_field('languages', 'lingotek_enabled');
  db_drop_field('languages', 'lingotek_locale');
}