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