function theme_link_formatter_link_short in Link 7
Formats a link using "Link" as the link text.
File
- ./
link.module, line 1458 - Defines simple link field types.
Code
function theme_link_formatter_link_short($vars) {
// If no URL value is present there's no point in continuing.
if (empty($vars['element']['url'])) {
return '';
}
$link_options = $vars['element'];
unset($link_options['title']);
unset($link_options['url']);
return l(t('Link'), $vars['element']['url'], $link_options);
}