You are here

function lingotek_get_profiles in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_get_profiles()
  2. 7.4 lingotek.module \lingotek_get_profiles()
  3. 7.6 lingotek.module \lingotek_get_profiles()
11 calls to lingotek_get_profiles()
lingotek_admin_profile_manage in ./lingotek.admin.inc
lingotek_entity_load in ./lingotek.module
Implements hook_entity_load().
lingotek_get_all_entities_by_profile in ./lingotek.util.inc
lingotek_get_enabled_entities_by_type in ./lingotek.util.inc
Get all entities enabled for Lingotek, by entity type
lingotek_get_profiles_by_name in ./lingotek.module
Return all profiles in an associative array, by name

... See full list

File

./lingotek.module, line 1142

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