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