You are here

function _metatags_quick_language_list in Meta tags quick 7.2

Same name and namespace in other branches
  1. 8.3 metatags_quick.admin.inc \_metatags_quick_language_list()

creates a select list compatible list of languages keyed by language tags and with localized language values.

@global type $language

Return value

array $languages

2 calls to _metatags_quick_language_list()
metatags_quick_admin_path_based in ./metatags_quick.admin.inc
Display all paths that have defined meta tags
metatags_quick_admin_path_based_edit in ./metatags_quick.admin.inc
Displays a form to the user allowing him to edit the path and all the fields of the metatag entity associated with that path

File

./metatags_quick.admin.inc, line 730

Code

function _metatags_quick_language_list() {
  global $language;
  $languages = array();
  foreach (language_list() as $lang) {
    $languages[$lang->language] = t($lang->name);
  }
  return $languages;
}