function emaudio_custom_url_extract in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emaudio/providers/custom_url.inc \emaudio_custom_url_extract()
File
- contrib/
emaudio/ providers/ custom_url.inc, line 56 - This is an include file used by emfield.module.
Code
function emaudio_custom_url_extract($embed = '') {
$types = implode('|', _emaudio_custom_url_supported_types());
$baseurl = preg_quote(url(null, array(
'absolute' => TRUE,
)), '@');
return array(
'@' . $baseurl . '(.*' . '\\.(?:' . $types . ')' . '(\\?.*)?)@i',
'@(.*\\.(?:' . $types . ')(\\?.*)?)@i',
);
}