function emimage_photobucket_extract in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emimage/providers/photobucket.inc \emimage_photobucket_extract()
File
- contrib/
emimage/ providers/ photobucket.inc, line 57 - This include processes photobucket.com image files for use by emfield.module.
Code
function emimage_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();
}