You are here

function theme_opengraph_meta_thumbnail in Open Graph meta tags 7.2

1 theme call to theme_opengraph_meta_thumbnail()
opengraph_meta_form_alter in ./opengraph_meta.module
Implementation of hook_form_alter.

File

./opengraph_meta.module, line 199

Code

function theme_opengraph_meta_thumbnail($vars) {
  $image = $vars['image'];
  $attributes = array(
    'class' => 'opengraph-thumb',
  );
  $abs_path = url(ltrim($image['url'], '/'));
  return theme('image', array(
    'path' => $abs_path,
    'alt' => $image['alt'],
    'height' => '60px',
    'attributes' => array_merge($attributes, array(
      'title' => $image['title'],
    )),
  ));
}