1 link.theme.inc theme_link_formatter_link_url($variables)

Formats a link using an alternate display URL for its link text.

File

core/modules/link/link.theme.inc, line 112
Theme functions and preprocessing for Link module output.

Code

function theme_link_formatter_link_url($variables) {
  $link_options = $variables['element'];
  unset($link_options['title']);
  unset($link_options['url']);
  return $variables['element']['url'] ? l($variables['element']['display_url'], $variables['element']['url'], $link_options) : '';
}