You are here

function oembedprovider_embed_essence_callback in oEmbed 7

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

File

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

Code

function oembedprovider_embed_essence_callback($plugin, $url, $matches, $parameters) {
  $embed = FALSE;
  $Essence = new fg\Essence\Essence();
  $Media = $Essence
    ->embed($url, $parameters);
  if ($Media) {
    $embed = $Media
      ->properties();
  }
  return $embed;
}