You are here

function theme_shrinktheweb_formatter_shrinktheweb_link_image in ShrinkTheWeb 7

Theme Screenshot image as link

File

./shrinktheweb.module, line 392

Code

function theme_shrinktheweb_formatter_shrinktheweb_link_image($vars) {
  $preview = theme('shrinktheweb_image', array(
    'url' => $vars['element']['url'],
    'options' => array(
      'attributes' => array(
        'class' => array(
          'shrinktheweb',
        ),
      ),
    ),
  ));
  return $vars['element']['url'] ? l($preview, $vars['element']['url'], array(
    'attributes' => $vars['element']['attributes'],
    'html' => TRUE,
  )) : '';
}