You are here

function lingotek_get_profile_settings in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.6 lingotek.module \lingotek_get_profile_settings()
2 calls to lingotek_get_profile_settings()
lingotek_admin_profile_form in ./lingotek.admin.inc
Content defaults Form
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 1165

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);
}