You are here

function theme_oembed__photo in oEmbed 7

Same name and namespace in other branches
  1. 8 theme/oembed.theme.inc \theme_oembed__photo()
  2. 7.0 theme/oembed.theme.inc \theme_oembed__photo()

Theme for photo oEmbed output.

2 theme calls to theme_oembed__photo()
OembedEndpointTestCase::testOembedEndpoint in modules/oembedprovider/oembedprovider.test
OembedProviderTestCase::testOembedProviders in modules/oembedprovider/oembedprovider.test

File

theme/oembed.theme.inc, line 32
Theme related functions for oEmbed Core

Code

function theme_oembed__photo($vars) {
  $embed = $vars['embed'];
  $variables = array(
    'path' => $embed['url'],
    'alt' => oembed_alt_attr($embed),
    'width' => $embed['width'],
    'height' => $embed['height'],
  );
  return theme('image', $variables);
}