You are here

function lingotek_process_link_field_attributes in Lingotek Translation 7.7

Places the mouseover text for link attributes

1 call to lingotek_process_link_field_attributes()
lingotek_process_entity_xml in ./lingotek.remote.inc

File

./lingotek.remote.inc, line 317

Code

function lingotek_process_link_field_attributes($curr_field_data, $insert_array, $db_column_name) {
  $link_attributes_serialized = '';
  if (isset($curr_field_data[language_default()->language])) {
    $link_attributes = $curr_field_data[language_default()->language][0]['attributes'];
  }
  elseif (isset($curr_field_data[LANGUAGE_NONE])) {
    $link_attributes = $curr_field_data[LANGUAGE_NONE][0]['attributes'];
  }
  if (empty($link_attributes)) {
    return $insert_array[$db_column_name];
  }
  $link_attributes['title'] = $insert_array[$db_column_name];
  $link_attributes_serialized = serialize($link_attributes);
  return $link_attributes_serialized;
}