function oembedcore_oembed_data in oEmbed 6.0
Fetch data for an embeddable URL.
Parameters
string $url: An external URL for the content to embed.
array $attributes: An associative array of attributes, with the following keys:
- 'maxwidth' The maximum width of the embed, in pixels.
- 'maxheight' The maximum height of the embed, in pixels.
Return value
False or an object representing the embeddable data of the URL.
2 calls to oembedcore_oembed_data()
- template_preprocess_oembedfield_formatter_oembed_default in theme/
oembedfield_theme.inc - @file Theme related functions for oEmbed Field
- _oembed_resolve_link in ./
oembed.inc
File
- ./
oembedcore.module, line 254 - Core functionality for oEmbed
Code
function oembedcore_oembed_data($url, $attributes = array()) {
$matches = array();
if ($provider = oembedcore_get_provider($url, $matches)) {
$data =& $attributes;
$data['__drupal_alter_by_ref'] = array(
&$provider,
);
drupal_alter('oembed_request', $data, $url);
return oembedcore_oembed_fetch($provider, $url, $matches, $attributes);
}
return FALSE;
}