1 language.install language_uninstall()

Implements hook_uninstall().

File

core/modules/language/language.install, line 18
Install, update and uninstall functions for the language module.

Code

function language_uninstall() {
  // Restore core language variables to defaults.
  $config = config('system.core');
  $config->set('language_default', 'en');
  $config->set('language_count', 1);
  $config->save();

  // Re-initialize the language system so successive calls to t() and other
  // functions will not expect languages to be present.
  backdrop_static_reset('language_default');
  backdrop_language_initialize();
}