function domain_variable_locale_variable_info in Domain Variable 7
Implements hook_variable_info().
File
- domain_variable_locale/
domain_variable_locale.variable.inc, line 11 - Set enabled Languages per Domain realm.
Code
function domain_variable_locale_variable_info($options) {
// 'language_list' is a Drupal Core function. hook_init() is used to leverage
// the variable table to override static_cached result of language_list().
// This variable is exposed to the Domain Realm with the 'multidomain'
// property.
$variables['language_list'] = array(
'title' => t('List of active languages'),
'group' => 'regional_settings',
'default callback' => 'domain_variable_locale_language_list_defaults',
'type' => 'options',
'options callback' => 'domain_variable_locale_language_list',
'multidomain' => TRUE,
);
return $variables;
}