function views_get_localization_plugin

3.x views.module views_get_localization_plugin()

Load the current enabled localization plugin.

Return value

The name of the localization plugin.

2 calls to views_get_localization_plugin()
view::init_localization in includes/view.inc
Find and initialize the localizer plugin.
views_ui_admin_settings_advanced in includes/admin.inc
Form builder for the advanced admin settings page.

File

./views.module, line 1315
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_get_localization_plugin() {
  $plugin = variable_get('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;
}