function domain_conf_language_options in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain_conf/domain_conf.module \domain_conf_language_options()
- 7.3 domain_conf/domain_conf.module \domain_conf_language_options()
Get the language options for use in forms.
1 call to domain_conf_language_options()
- domain_conf_domainbatch in domain_conf/
domain_conf.module - Implements hook_domainbatch()
File
- domain_conf/
domain_conf.module, line 692 - Domain manager configuration options.
Code
function domain_conf_language_options() {
$languages = language_list('language', TRUE);
$options = array();
foreach ($languages as $key => $lang) {
$extra = '';
if ($lang->native != $lang->name) {
$extra = ' (' . $lang->name . ')';
}
$options[$key] = check_plain($lang->native . $extra);
}
return $options;
}