function domain_conf_language_options in Domain Access 7.3
Same name and namespace in other branches
- 6.2 domain_conf/domain_conf.module \domain_conf_language_options()
- 7.2 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_domain_batch in domain_conf/
domain_conf.domain.inc - Implements hook_domain_batch().
File
- domain_conf/
domain_conf.module, line 393 - 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;
}