You are here

function lingotek_get_profiles in Lingotek Translation 7.6

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.5 lingotek.module \lingotek_get_profiles()
12 calls to lingotek_get_profiles()
lingotek_admin_profile_manage in ./lingotek.admin.inc
lingotek_bulk_grid_parse_table_data in ./lingotek.bulk_grid.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

... See full list

File

./lingotek.module, line 1245

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