1.20.x views.module views_get_localization_plugin()

Load the current enabled localization plugin.

Return value

string: The name of the localization plugin.

File

modules/views/views.module, line 1213
Primarily Backdrop hooks and global API functions to manipulate views.

Code

function views_get_localization_plugin() {
  $plugin = config_get('views.settings', 'views_localization_plugin');
  // Provide sane default values for the localization plugin.
  if (empty($plugin)) {
    if (module_exists('locale')) {
      $plugin = 'core';
    }
    else {
      $plugin = 'none';
    }
  }
  return $plugin;
}