root / drupal7 / sites / all / modules / rules / rules_i18n / rules_i18n.install @ 950416da
1 |
<?php |
---|---|
2 |
|
3 |
/** |
4 |
* @file |
5 |
* Install file for Rules i18n. |
6 |
*/ |
7 |
|
8 |
/** |
9 |
* Implements hook_install(). |
10 |
*/ |
11 |
function rules_i18n_install() { |
12 |
global $language; |
13 |
|
14 |
$langcode = $language->language; |
15 |
drupal_static_reset('i18n_object_info'); |
16 |
drupal_static_reset('entity_get_info'); |
17 |
drupal_static_reset('entity_i18n_controller'); |
18 |
cache_clear_all("entity_info:$langcode", 'cache'); |
19 |
} |