public function MediaInternetOEmbedHandler::getOEmbed in oEmbed 7.0
Same name and namespace in other branches
- 8 MediaInternetOEmbedHandler.inc \MediaInternetOEmbedHandler::getOEmbed()
- 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
Class
- MediaInternetOEmbedHandler
- Implementation of MediaInternetBaseHandler.
Code
public function getOEmbed() {
$embed = oembed_get_data($this->embedCode);
return $embed ? (array) $embed : NULL;
}