function lingotek_get_profile_options in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lingotek.module \lingotek_get_profile_options()
- 7.6 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 1351
Code
function lingotek_get_profile_options() {
$profiles = lingotek_get_profiles();
$profile_options = array();
foreach ($profiles as $key => $profile) {
$profile_options[$key] = t($profile
->getName());
}
$profile_options[LingotekSync::PROFILE_DISABLED] = t('Disabled');
unset($profile_options[LingotekSync::PROFILE_CONFIG]);
return $profile_options;
}