You are here

public function MediaInternetOEmbedHandler::getOEmbed in oEmbed 7.0

Same name and namespace in other branches
  1. 8 MediaInternetOEmbedHandler.inc \MediaInternetOEmbedHandler::getOEmbed()
  2. 7 MediaInternetOEmbedHandler.inc \MediaInternetOEmbedHandler::getOEmbed()

Returns an array representation of the oEmbed data, or NULL on failure.

An example project that calls this method is Media Browser Plus (http://drupal.org/project/media_browser_plus). Other projects may do so in the future.

File

./MediaInternetOEmbedHandler.inc, line 69
MediaInternetOEmbedHandler.inc

Class

MediaInternetOEmbedHandler
Implementation of MediaInternetBaseHandler.

Code

public function getOEmbed() {
  $embed = oembed_get_data($this->embedCode);
  return $embed ? (array) $embed : NULL;
}