You are here

function theme_link_formatter_plain in Link 6

Same name and namespace in other branches
  1. 6.2 link.theme.inc \theme_link_formatter_plain()

Theme function for 'plain' text field formatter.

File

./link.module, line 549
Defines simple link field types.

Code

function theme_link_formatter_plain($element) {
  return empty($element['#item']['url']) ? check_plain($element['#item']['title']) : url($element['#item']['url'], $element['#item']);
}