You are here

function emvideo_google_extract in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/providers/google.inc \emvideo_google_extract()

File

contrib/emvideo/providers/google.inc, line 40
This include processes Google.com media files for use by emfield.module

Code

function emvideo_google_extract($embed) {
  return array(
    '@http://video\\.google(?:\\.[a-z]{2,4})+/videoplay(?:\\?|%3F)docid(?:=|%3D)([^\\&]*)\\&@i',
    '@http://video\\.google(?:\\.[a-z]{2,4})+/videoplay(?:\\?|%3F)docid(?:=|%3D)([^\\&]*)\\&@i',
    '@http://video\\.google(?:\\.[a-z]{2,4})+/videoplay\\?docid=(.*)@i',
    '@http://video\\.google(?:\\.[a-z]{2,4})+/googleplayer\\.swf\\?docId=(-?\\d*)@i',
    '@http://video\\.google(?:\\.[a-z]{2,4})+/url\\?docid=([^\\&]*)\\&@i',
  );
}