function domain_lang_detection_selection_form in Domain Lang 7
Domain language detection and selection page form callback.
1 string reference to 'domain_lang_detection_selection_form'
- domain_lang_menu in ./
domain_lang.module - Implements hook_menu().
File
- ./
domain_lang.admin.inc, line 11 - Domain Language detection and selection administration pages.
Code
function domain_lang_detection_selection_form($form, $form_state, $domain) {
// Redirect user to related domain because only on it
// will be loaded proper variables by domain_conf module.
$current_domain = domain_get_domain();
if ($current_domain['domain_id'] !== $domain['domain_id']) {
domain_goto($domain);
}
module_load_include('inc', 'locale', 'locale.admin');
$form = locale_languages_configure_form();
$form['#submit'] = array(
'domain_lang_detection_selection_form_submit',
);
$form['domain_id'] = array(
'#type' => 'value',
'#value' => $domain['domain_id'],
);
return $form;
}