You are here

function theme_link_formatter_short in Link 6

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

Theme function for 'short' text field formatter.

File

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

Code

function theme_link_formatter_short($element) {
  return $element['#item']['url'] ? l(t('Link'), $element['#item']['url'], $element['#item']) : '';
}