You are here

function mail_edit_language_list in Mail Editor 7

Return an array of all the languages in the system.

Return value

array

4 calls to mail_edit_language_list()
mail_edit_list in ./mail_edit.admin.inc
Page callback: List mail templates.
mail_edit_template_form in ./mail_edit.admin.inc
Form builder function to prepare the template edit form.
mail_edit_template_form_save in ./mail_edit.admin.inc
Submit handler to save the template edit form.
mail_edit_template_remove_confirm_submit in ./mail_edit.admin.inc
Executes the template removal.

File

./mail_edit.admin.inc, line 665
Administrative interface for the Mail Editor module.

Code

function mail_edit_language_list() {
  $language_list = array();
  if (module_exists('locale')) {
    $language_list = locale_language_list('name', TRUE);
  }
  else {
    foreach (array_keys(language_list()) as $key) {
      $language_list[$key] = $key;
    }
  }
  return $language_list;
}