function hook_language_insert

React to a language that was just added to the system.

Parameters

$language: A language object.

Related topics

2 functions implement hook_language_insert()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

language_language_insert in drupal/core/modules/language/language.module
Implements hook_language_insert().
locale_language_insert in drupal/core/modules/locale/locale.module
Implements hook_language_insert().
1 invocation of hook_language_insert()
language_save in drupal/core/modules/language/language.module
API function to add or update a language.

File

drupal/core/modules/language/language.api.php, line 32
Hooks provided by the Language module.

Code

function hook_language_insert($language) {
  example_refresh_permissions();
}