You are here

function emaudio_custom_url_extract in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 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',
  );
}