You are here

function lingotek_get_profile_fields in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_get_profile_fields()
  2. 7.4 lingotek.module \lingotek_get_profile_fields()
  3. 7.6 lingotek.module \lingotek_get_profile_fields()
2 calls to lingotek_get_profile_fields()
lingotek_admin_profile_form_submit in ./lingotek.admin.inc
lingotek_entity_save in ./lingotek.module

File

./lingotek.module, line 2055

Code

function lingotek_get_profile_fields($include_readonly = TRUE, $include_changeable = TRUE) {
  $profile_fields = array();
  if ($include_readonly) {
    $profile_fields = array_merge($profile_fields, array(
      'lingotek_nodes_translation_method',
      'project_id',
      'vault_id',
    ));
  }
  if ($include_changeable) {
    $profile_fields = array_merge($profile_fields, array(
      'profile',
      'name',
      'create_lingotek_document',
      'sync_method',
      'allow_community_translation',
      'url_alias_translation',
      'workflow_id',
    ));
  }
  return $profile_fields;
}