function i18nviews_locale_refresh in Internationalization Views 6.2
Same name and namespace in other branches
- 6.3 i18nviews.module \i18nviews_locale_refresh()
Refresh views locales, 2.x version
1 string reference to 'i18nviews_locale_refresh'
- i18nviews_locale in ./
i18nviews.module - Implementation of hook_locale().
File
- ./
i18nviews.module, line 41 - Views support for Internationalization (i18n) package
Code
function i18nviews_locale_refresh() {
$views = views_get_all_views();
foreach ($views as $view) {
$fields = _i18nviews_display_fields();
if (!empty($view->display) && is_array($view->display)) {
foreach (array_keys($view->display) as $display_id) {
_i18nviews_localize_array($view->name, $display_id, $view->display[$display_id]->display_options, $fields, TRUE);
}
}
}
return TRUE;
// Completed successfully
}