function i18n_variable_variable_realm_info in Internationalization 7
Implements hook_variable_realm_info().
File
- i18n_variable/
i18n_variable.module, line 24 - Internationalization (i18n) package. Multilingual variables API.
Code
function i18n_variable_variable_realm_info() {
$realm['language'] = array(
'title' => t('Language'),
'weight' => 100,
'controller class' => 'I18nVariableLanguageRealm',
'store class' => 'VariableStoreRealmStore',
// Variables for this realm can be selected from a list.
'select' => TRUE,
'select path' => 'admin/config/regional/i18n/variable',
// Name for variables that belong to this realm: 'multilingual' variable/s
'variable name' => t('multilingual'),
'variable class' => 'i18n-variable',
// Automatically handle these variables in system settings forms.
'form settings' => TRUE,
'form switcher' => TRUE,
);
return $realm;
}