function views_get_localization_plugin

Load the current enabled localization plugin.

Return value

string The name of the localization plugin.

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

File

./views.module, line 1492

Code

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