function emaudio_soundclick_extract in Embedded Media Field 5
Implementation of hook emaudio_soundclick_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/ soundclick.inc, line 49
Code
function emaudio_soundclick_extract($embed = '') {
// http://www.soundclick.com/bands/default.cfm?bandid=838201&content=widgets&style=player&id=3
return array(
'@soundclick\\.com/bands/default\\.cfm\\?bandid=([^\\&]+)@i',
);
}