You are here

function lingotek_get_profile_options in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_get_profile_options()
  2. 7.5 lingotek.module \lingotek_get_profile_options()
1 call to lingotek_get_profile_options()
lingotek_get_node_settings_form in ./lingotek.module
Display the Lingotek node-settings form
1 string reference to 'lingotek_get_profile_options'
lingotek_rules_action_info in ./lingotek.rules.inc
Implements hook_rules_action_info().

File

./lingotek.module, line 1288

Code

function lingotek_get_profile_options() {
  $profiles = lingotek_get_profiles();
  $profile_options = array();
  foreach ($profiles as $key => $profile) {
    $profile_options[$key] = t($profile['name']);
  }
  $profile_options[LingotekSync::PROFILE_CUSTOM] = t('Custom');
  $profile_options[LingotekSync::PROFILE_DISABLED] = t('Disabled');
  unset($profile_options[LingotekSync::PROFILE_CONFIG]);
  return $profile_options;
}