Remove condition to render language selector on community prefs form using radio buttons when 5 or fewer languages are available

(DBOINCP-141)
This commit is contained in:
Tristan Olive 2015-01-26 23:29:58 -05:00
parent 25cb588984
commit 31419f1271
1 changed files with 1 additions and 1 deletions

View File

@ -1442,7 +1442,7 @@ function communityprefs_form(&$form_state) {
$mode = variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE);
$user_preferred_language = user_preferred_language($account);
$form['locale']['language'] = array(
'#type' => (count($names) <= 5 ? 'radios' : 'select'),
'#type' => 'select',
'#title' => t('Language'),
'#default_value' => check_plain($user_preferred_language->language),
'#options' => $names,