function rules_i18n_install

Implements hook_install().

File

rules_i18n/rules_i18n.install, line 11

Code

function rules_i18n_install() {
    global $language;
    $langcode = $language->language;
    drupal_static_reset('i18n_object_info');
    drupal_static_reset('entity_get_info');
    drupal_static_reset('entity_i18n_controller');
    cache_clear_all("entity_info:{$langcode}", 'cache');
}