function _oembed_resolve_link in oEmbed 6.0
Same name and namespace in other branches
- 8 oembed_legacy.inc \_oembed_resolve_link()
- 7 oembed_legacy.inc \_oembed_resolve_link()
- 7.0 oembed_legacy.inc \_oembed_resolve_link()
1 call to _oembed_resolve_link()
File
- ./
oembed.inc, line 45 - Functions for the oEmbed filter
Code
function _oembed_resolve_link($match, $prefix, $suffix) {
global $_oembed_default_attributes;
$return = '';
$url = decode_entities($match);
if ($embed = oembedcore_oembed_data($url, $_oembed_default_attributes)) {
$return = oembedcore_oembed_html($embed, $url);
}
else {
$return = l($match, $url, array(
'absolute' => TRUE,
));
}
return $prefix . $return . $suffix;
}