function lingotek_get_profile_settings in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.5 lingotek.module \lingotek_get_profile_settings()
4 calls to lingotek_get_profile_settings()
- lingotek_admin_additional_translation_settings_form in ./
lingotek.admin.inc - Additional translation form
- lingotek_admin_profile_form in ./
lingotek.admin.inc - Content defaults Form
- lingotek_update_config_progress in ./
lingotek.sync.inc - Updates the 'target_sync_status_[lang-code]' field for every target in the lingotek_config_metadata table with the overall progress returned by TMS
- lingotek_uses_node_translation in ./
lingotek.util.inc - Return true if the node's profile is set to node-based translation, false otherwise.
File
- ./
lingotek.module, line 1268
Code
function lingotek_get_profile_settings($profile_id) {
// merge of global profile settings and profile-specific settings
$profiles = lingotek_get_profiles();
$global_profile = lingotek_get_global_profile();
$profile = isset($profiles[$profile_id]) ? $profiles[$profile_id] : array();
return array_merge($global_profile, $profile);
}