You are here

function i18nviews_locale in Internationalization Views 6.3

Same name and namespace in other branches
  1. 6.2 i18nviews.module \i18nviews_locale()

Implementation of hook_locale().

File

./i18nviews.module, line 27
Views support for Internationalization (i18n) package

Code

function i18nviews_locale($op = 'groups') {
  switch ($op) {
    case 'groups':
      return array(
        'views' => t('Views'),
      );
    case 'info':

      // Only when i18nstrings is used as views localization plugin
      if (variable_get('views_localization_plugin', 'core') == 'i18nstrings') {
        $info['views']['refresh callback'] = 'i18nviews_locale_refresh';
        $info['views']['format'] = TRUE;
        return $info;
      }
      break;
  }
}