diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-02 12:04:17 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-02 12:04:17 +0000 |
commit | f96a1c769094228d0ff3fb84a01e6c368d79a2f3 (patch) | |
tree | fca24ff9270a4b3638f577fd5538e87874efab5a /modules/locale | |
parent | 5f635b95857efc7da3dc6ce9f9abbdb1f8e208e8 (diff) | |
download | brdo-f96a1c769094228d0ff3fb84a01e6c368d79a2f3.tar.gz brdo-f96a1c769094228d0ff3fb84a01e6c368d79a2f3.tar.bz2 |
#205334 by hass: if more then 5 languages are available, use a dropdown not a radio button list (usability)
Diffstat (limited to 'modules/locale')
-rw-r--r-- | modules/locale/locale.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module index fd7c24953..1d9a9a985 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -226,7 +226,7 @@ function locale_user($type, $edit, &$user, $category = NULL) { ); $form['locale']['language'] = array( - '#type' => 'radios', + '#type' => (count($names) <= 5 ? 'radios' : 'select'), '#title' => t('Language'), '#default_value' => $user_preferred_language->language, '#options' => $names, |