You are here

function link_i18n_string_list_field_alter in Link 7

Implements hook_i18n_string_list_TEXTGROUP_alter().

File

./link.module, line 2044
Defines simple link field types.

Code

function link_i18n_string_list_field_alter(&$strings, $type = NULL, $object = NULL) {
  if ($type != 'field_instance' || !is_array($object) || !isset($object['widget']['type'])) {
    return;
  }
  if ($object['widget']['type'] == 'link_field' && isset($object['settings']['title_value'])) {
    $strings['field'][$object['field_name']][$object['bundle']]['title_value']['string'] = $object['settings']['title_value'];
  }
}