You are here

function oembedprovider_embed_alb_callback in oEmbed 7

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

File

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

Code

function oembedprovider_embed_alb_callback($plugin, $url, $matches, $parameters) {
  $embed = FALSE;
  $response = Alb\OEmbed\Simple::request($url, $parameters);
  if ($response) {
    $embed = $response
      ->toArray();
  }
  return $embed;
}