function theme_link_formatter_link_plain in Link 7
Formats a link (or its title) as plain text.
File
- ./
link.module, line 1351 - Defines simple link field types.
Code
function theme_link_formatter_link_plain($vars) {
$link_options = $vars['element'];
if (isset($link_options['title'])) {
unset($link_options['title']);
}
else {
$vars['element']['title'] = '';
}
unset($link_options['url']);
return empty($vars['element']['url']) ? check_plain($vars['element']['title']) : url($vars['element']['url'], $link_options);
}