rules_i18n.install 372 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * @file
  4. * Install file for Rules i18n.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function rules_i18n_install() {
  10. global $language;
  11. $langcode = $language->language;
  12. drupal_static_reset('i18n_object_info');
  13. drupal_static_reset('entity_get_info');
  14. drupal_static_reset('entity_i18n_controller');
  15. cache_clear_all("entity_info:$langcode", 'cache');
  16. }