W3cubDocs

/Drupal 8

function locale_modules_installed

locale_modules_installed($modules)

Implements hook_modules_installed().

File

core/modules/locale/locale.module, line 315
Enables the translation of the user interface to languages other than English.

Code

function locale_modules_installed($modules) {
  locale_system_set_config_langcodes();

  $components['module'] = $modules;
  locale_system_update($components);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.module/function/locale_modules_installed/8.1.x