1 link.theme.inc theme_link_formatter_link_short($variables)

Formats a link using "Link" as the link text.

File

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

Code

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