You are here

function _simplemeta_language_list in Simple Meta 7.2

Helper function. Get available languages options.

Return value

array Array of languages labels keyed by language codes. Empty string key means language-neutral.

See also

language_list()

1 call to _simplemeta_language_list()
simplemeta_form in ./simplemeta.admin.inc
SimpleMeta entity form callback.

File

./simplemeta.module, line 351
SimpleMeta module.

Code

function _simplemeta_language_list() {
  $languages = language_list();
  $options = array();
  foreach ($languages as $language) {
    $options[$language->language] = $language->name;
  }
  $options = array(
    '' => t('- Language neutral -'),
  ) + $options;
  return $options;
}