function i18n_language_list in Internationalization 7
Same name and namespace in other branches
- 5.3 i18n.module \i18n_language_list()
- 5 i18n.module \i18n_language_list()
- 5.2 i18n.module \i18n_language_list()
- 6 i18n.module \i18n_language_list()
Get full language list
@todo See about creating a permission for seeing disabled languages
10 calls to i18n_language_list()
- i18nSelectTestCase::testIi18nSelect in i18n_select/
i18n_select.test - i18n_block_form_block_admin_configure_alter in i18n_block/
i18n_block.module - Implements block hook_form_FORM_ID_alter().
- i18n_element_language_select in ./
i18n.module - Get language selector form element
- i18n_menu_translation_form in i18n_menu/
i18n_menu.admin.inc - Produces a menu translation form.
- i18n_menu_translation_item_overview in i18n_menu/
i18n_menu.admin.inc - Callback for menu translation tab.
File
- ./
i18n.module, line 199 - Internationalization (i18n) module.
Code
function i18n_language_list($field = 'name', $mode = NULL) {
$mode = isset($mode) ? $mode : variable_get('i18n_language_list', I18N_LANGUAGE_ENABLED);
$all = I18N_LANGUAGE_EXTENDED & $mode;
return locale_language_list($field, $all);
}