function hook_multilingual_settings_changed

hook_multilingual_settings_changed()

Allow modules to react to language settings changes.

Every module needing to act when the number of enabled languages changes should implement this. This is an "internal" hook and should not be invoked elsewhere. The typical implementation would trigger some kind of rebuilding, this way system components could properly react to the change of the enabled languages number.

Related topics

File

modules/locale/locale.api.php, line 35
Hooks provided by the Locale module.

Code

function hook_multilingual_settings_changed() {
  field_info_cache_clear();
}

© 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/modules!locale!locale.api.php/function/hook_multilingual_settings_changed/7.x