function views_get_localization_plugin
Same name in other branches
- 7.x-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_tools in includes/
admin.inc - Page callback for the tools - other page
File
-
./
views.module, line 931
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;
}