You are here

function oembedprovider_embed_embed_callback in oEmbed 7

Same name and namespace in other branches
  1. 7.0 oembedprovider_embed/plugins/providers/embed.inc \oembedprovider_embed_embed_callback()
1 string reference to 'oembedprovider_embed_embed_callback'
embed.inc in modules/oembedprovider_embed/plugins/providers/embed.inc

File

modules/oembedprovider_embed/plugins/providers/embed.inc, line 9

Code

function oembedprovider_embed_embed_callback($plugin, $url, $matches, $parameters) {
  $embed = FALSE;
  $provider = Embed\Embed::create(new Embed\Url($url));
  if ($provider->OEmbed) {
    $embed = $provider->OEmbed
      ->get();
  }
  return $embed;
}