function _languagefield_getLanguageConfigurationOptions in Custom Language field 7
1 call to _languagefield_getLanguageConfigurationOptions()
- _languagefield_options in ./
languagefield.module - Helper function to generate the language options list.
File
- ./
languagefield.module, line 612 - Provides a list of languages from ISO 639 standard. All variables of a $language-object can be found here: http://api.drupal.org/api/drupal/developer--globals.php/global/language
Code
function _languagefield_getLanguageConfigurationOptions($code) {
switch ($code) {
case LANGUAGEFIELD_SITE_DEFAULT:
$values = array(
LANGUAGEFIELD_SITE_DEFAULT => t("Site's default language (!language)", array(
'!language' => language_default()->name,
)),
);
break;
case LANGUAGEFIELD_CURRENT_INTERFACE:
$values = array(
LANGUAGEFIELD_CURRENT_INTERFACE => t('Current interface language'),
);
break;
case LANGUAGEFIELD_AUTHORS_DEFAULT:
$values = array(
LANGUAGEFIELD_AUTHORS_DEFAULT => t("Author's preferred language"),
);
break;
}
return $values;
}