You are here

function globallink_update_non_translatable_field in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink_node.inc \globallink_update_non_translatable_field()
  2. 7.5 globallink_node.inc \globallink_update_non_translatable_field()
1 call to globallink_update_non_translatable_field()
globallink_update_node in ./globallink_node.inc
Updates node.

File

./globallink_node.inc, line 2287

Code

function globallink_update_non_translatable_field($node, &$tnode) {
  $field_arr = globallink_get_non_translatable_config_fields($node->type);
  foreach ($field_arr as $field) {
    if (isset($field->field_name)) {
      $field_name = $field->field_name;
      if (isset($tnode->{$field_name})) {
        $tnode->{$field_name} = $node->{$field_name};
      }
    }
  }
}