You are here

function i18nstrings_uninstall in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18nstrings/i18nstrings.install \i18nstrings_uninstall()
  2. 5 experimental/i18nstrings.install \i18nstrings_uninstall()
  3. 5.2 experimental/i18nstrings.install \i18nstrings_uninstall()

Implementation of hook_uninstall().

File

i18nstrings/i18nstrings.install, line 30
Installation file for i18nstrings module.

Code

function i18nstrings_uninstall() {
  $ret = array();

  // Create database tables.
  drupal_uninstall_schema('i18nstrings');

  // @TODO locale table cleanup, think about it.
  // Should we drop all strings for groups other than 'default' ?
  // Drop custom field.
  db_drop_field($ret, 'locales_target', 'i18n_status');

  // Drop custom index.
  db_drop_index($ret, 'locales_source', 'textgroup_location');

  // May be a left over variable
  variable_del('i18nstrings_update_skip');
}