Skip to content

Commit

Permalink
Merge pull request #2775 from ec-europa/nept-2712-2.6
Browse files Browse the repository at this point in the history
NEPT-2712: Fix conflict from 2.5.142.1
  • Loading branch information
Fefaine authored Nov 6, 2019
2 parents 29145b0 + f51f370 commit cfef47f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
8 changes: 6 additions & 2 deletions profiles/common/modules/custom/ecas/includes/ecas.inc
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,12 @@ function ecas_save_user($account, $edit, array $ecas_user_info, array $args = ar
// Load the user account and update realname, to ensure the safe_value of
// fields are updated.
cache_clear_all();
$update_account = user_load($account->uid, TRUE);
realname_update($update_account);

if (module_exists('realname')) {
$update_account = user_load($account->uid, TRUE);
realname_update($update_account);
}

return $account;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,29 @@ function nexteuropa_formatters_fields_field_formatter_view($entity_type, $entity
$elements[$delta] = $link;
}
}
elseif ('file' == $field['type']) {
foreach ($items as $delta => $item) {
$link = array(
'#theme' => 'link',
'#text' => $item['filename'],
'#path' => file_create_url($item['uri']),
'#options' => array(
'attributes' => array(
'target' => array(
'_blank',
),
'class' => array(
'ecl-button',
'ecl-button--default',
'ecl-file__download',
'ecl-button--file',
),
),
),
);
$elements[$delta] = $link;
}
}
break;

case 'ne_social_icon':
Expand Down

0 comments on commit cfef47f

Please sign in to comment.