You are here

function emvideo_zzz_custom_url_extract in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 contrib/emvideo/providers/zzz_custom_url.inc \emvideo_zzz_custom_url_extract()

File

contrib/emvideo/providers/zzz_custom_url.inc, line 55
This is an include file used by emfield.module.

Code

function emvideo_zzz_custom_url_extract($embed = '') {
  $types = _emvideo_zzz_custom_url_implode_types();
  $baseurl = preg_quote(url(null, array(
    'absolute' => TRUE,
  )), '@');
  return array(
    '@' . $baseurl . '(.*\\.(?:' . $types . ')' . '(\\?.*)?)@i',
    '@(.*\\.(?:' . $types . ')(\\?.*)?)@i',
    '@' . $baseurl . '(.*(?:xspf))@i',
    '@(.*(?:xspf))@i',
  );
}