function language_language_insert

Implements hook_language_insert().

File

drupal/core/modules/language/language.module, line 710
Add language handling functionality to Drupal.

Code

function language_language_insert($language) {
  if (!empty($language->locked)) {
    return;
  }
  language_negotiation_include();

  // Add language to the list of language domains.
  $domains = language_negotiation_url_domains();
  $domains[$language->langcode] = '';
  language_negotiation_url_domains_save($domains);
}