1.20.x link.theme.inc theme_link_formatter_link_absolute($variables)

Formats a link as an absolute URL.

File

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

Code

function theme_link_formatter_link_absolute($variables) {
  $absolute = array('absolute' => TRUE);
  return empty($variables['element']['url']) ? '' : url($variables['element']['url'], $absolute + $variables['element']);
}