updated rules
This commit is contained in:
19
sites/all/modules/rules/rules_i18n/rules_i18n.install
Normal file
19
sites/all/modules/rules/rules_i18n/rules_i18n.install
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Install file for Rules i18n.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
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');
|
||||
}
|
Reference in New Issue
Block a user