You are here

function domain_conf_language_options in Domain Access 6.2

Same name and namespace in other branches
  1. 7.3 domain_conf/domain_conf.module \domain_conf_language_options()
  2. 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_domainbatch in domain_conf/domain_conf.module
Implement hook_domainbatch()

File

domain_conf/domain_conf.module, line 693
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;
}