public function I18nVariableLanguageRealm::getAvailableVariables in Internationalization 7
Implementation of VariableRealmControllerInterface::getAvailableVariables().
File
- i18n_variable/
i18n_variable.class.inc, line 14 - Variable Realm controller.
Class
- I18nVariableLanguageRealm
- Controller for Language realms.
Code
public function getAvailableVariables() {
$translatable = array();
$conf = variable_get('i18n_variables', array());
foreach (variable_get_info() as $name => $variable) {
if (!empty($variable['localize']) || in_array($name, $conf)) {
$translatable[] = $name;
}
}
return $translatable;
}