You are here

function emaudio_podcastalley_extract in Embedded Media Field 6

Same name and namespace in other branches
  1. 5 contrib/emaudio/providers/podcastalley.inc \emaudio_podcastalley_extract()
  2. 6.3 contrib/emaudio/providers/podcastalley.inc \emaudio_podcastalley_extract()

Implementation of hook emaudio_podcastalley_extract().

This is called to extract the video code from a pasted URL or embed code.

Parameters

$embed: An optional string with the pasted URL or embed code.

Return value

Either an array of regex expressions to be tested, or a string with the audio code to be used. If the hook tests the code itself, it should return either the string of the audio code (if matched), or an empty array. Otherwise, the calling function will handle testing the embed code against each regex string in the returned array.

File

contrib/emaudio/providers/podcastalley.inc, line 65
This include processes Podcastalley audio files for use by emaudio.module.

Code

function emaudio_podcastalley_extract($embed = '') {

  // http://www.podcastalley.com/podcast_details.php?pod_id=929#
  return array(
    '@podcastalley\\.com/podcast_details\\.php\\?pod_id=([0-9]+)@i',
  );
}