function globallink_get_mapped_locales_with_drupal_desc in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink.inc \globallink_get_mapped_locales_with_drupal_desc()
- 7.6 globallink.inc \globallink_get_mapped_locales_with_drupal_desc()
@todo Document this function.
13 calls to globallink_get_mapped_locales_with_drupal_desc()
- globallink_all_active_filter_form in ./
globallink_workbench_all_submissions.inc - Builds form to filter GlobalLink submissions
- globallink_beans_dashboard_form in globallink_beans/
globallink_beans_send.inc - Builds form to create a beans submission.
- globallink_block_dashboard_form in globallink_block/
globallink_block_send.inc - Builds form to create a block submission.
- globallink_commerce_dashboard_form in globallink_commerce/
globallink_commerce_send.inc - Builds form to create a commerce submission.
- globallink_create_submission_form in ./
globallink_send_translations.inc
File
- ./
globallink.inc, line 946 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_get_mapped_locales_with_drupal_desc($remove_default = TRUE) {
$languages = array();
$result = db_select('globallink_locale', 'tl')
->fields('tl')
->isNotNull('drupal_locale_code')
->orderBy('locale_desc', 'ASC')
->execute();
foreach ($result as $row) {
if ($remove_default) {
if (language_default()->language == $row->drupal_locale_code) {
continue;
}
}
$languages[$row->locale_code] = $row->drupal_locale_desc;
}
return $languages;
}