function theme_shrinktheweb_formatter_shrinktheweb_link_short in ShrinkTheWeb 7
Theme function for 'short' text field formatter.
File
- ./
shrinktheweb.module, line 315
Code
function theme_shrinktheweb_formatter_shrinktheweb_link_short($vars) {
$preview = theme('shrinktheweb_image', array(
'url' => $vars['element']['url'],
'options' => array(
'attributes' => array(
'class' => array(
'shrinktheweb',
),
),
),
));
return $vars['element']['url'] ? $preview . l(t('Link'), $vars['element']['url'], array(
'attributes' => $vars['element']['attributes'],
)) : '';
}