function lingotek_get_profiles in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lingotek.module \lingotek_get_profiles()
- 7.5 lingotek.module \lingotek_get_profiles()
- 7.6 lingotek.module \lingotek_get_profiles()
8 calls to lingotek_get_profiles()
- lingotek_admin_node_translation_settings_form in ./
lingotek.admin.inc - Content translation form
- lingotek_admin_profiles_form in ./
lingotek.admin.inc - lingotek_admin_profile_manage in ./
lingotek.admin.inc - lingotek_get_node_settings_form in ./
lingotek.module - lingotek_grid_build_filters in ./
lingotek.bulk_grid.inc - Builds the form elements for the filters.
File
- ./
lingotek.module, line 1100
Code
function lingotek_get_profiles() {
$profiles = variable_get('lingotek_profiles', array());
if (empty($profiles)) {
$profiles[] = array(
'name' => 'Automatic',
'create_lingotek_document' => 1,
'sync_method' => 1,
);
$profiles[] = array(
'name' => 'Manual',
'create_lingotek_document' => 0,
'sync_method' => 0,
);
variable_set('lingotek_profiles', $profiles);
}
return $profiles;
}