i18nviews.install in Internationalization Views 6.3
Same filename and directory in other branches
Installation file for Internationalization Views (i18nviews) module.
File
i18nviews.installView source
<?php
/**
* @file
* Installation file for Internationalization Views (i18nviews) module.
*/
/**
* Automatically enable/disable i18nviews in views settings
*
* No further install needed. We're using i18n schema and API.
*/
/**
* Implements hook_enable().
*/
function i18nviews_enable() {
// enable i18nstrings as views translation method
variable_set('views_localization_plugin', 'i18nstrings');
}
/**
* Implements hook_disable().
*/
function i18nviews_disable() {
// disable i18nstrings as views translation method, switch to core
$plugin = variable_get('views_localization_plugin', 'core');
if ($plugin == 'i18nstrings') {
variable_set('views_localization_plugin', 'core');
}
}
Functions
Name | Description |
---|---|
i18nviews_disable | Implements hook_disable(). |
i18nviews_enable | Implements hook_enable(). |