1 link.theme.inc | theme_link_formatter_link_plain($variables) |
Formats a link (or its title) as plain text.
File
- core/
modules/ link/ link.theme.inc, line 68 - Theme functions and preprocessing for Link module output.
Code
function theme_link_formatter_link_plain($variables) {
$link_options = $variables['element'];
if (isset($link_options['title'])) {
unset($link_options['title']);
}
else {
$variables['element']['title'] = '';
}
unset($link_options['url']);
return empty($variables['element']['url']) ? check_plain($variables['element']['title']) : url($variables['element']['url'], $link_options);
}