You are here

function i18n_language_list in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_language_list()
  2. 5 i18n.module \i18n_language_list()
  3. 5.2 i18n.module \i18n_language_list()
  4. 7 i18n.module \i18n_language_list()

Returns language lists.

Related topics

1 call to i18n_language_list()
i18n_link_alter in ./i18n.module
Implementation of hook_link_alter().

File

./i18n.module, line 833
Internationalization (i18n) module.

Code

function i18n_language_list($type = 'enabled', $field = 'name') {
  switch ($type) {
    case 'enabled':
      return locale_language_list($field);
    case 'extended':
      $enabled = locale_language_list($field);
      $defined = locale_language_list($field, TRUE);
      return array_diff_assoc($defined, $enabled);
  }
}