function image_ncck_photobucket_extract in Embedded Media Field 5
File
- contrib/
image_ncck/ providers/ photobucket.inc, line 44
Code
function image_ncck_photobucket_extract($embed = '') {
// http://s201.photobucket.com/albums/aa274/layoutqueenie/?action=view¤t=baileys_in_gardens.jpg
// http://i201.photobucket.com/albums/aa274/layoutqueenie/baileys_in_gardens.jpg
if (preg_match('![si]([^/.:@]+)\\.photobucket\\.com/albums/([^/]+)/([^/]+)/(\\?action=view¤t=)?(.+)$!i', $embed, $matches)) {
return $matches[5];
}
return array();
}