function emimage_imageshack_extract in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emimage/providers/imageshack.inc \emimage_imageshack_extract()
File
- contrib/
emimage/ providers/ imageshack.inc, line 58 - This include processes imageshack.com image files for use by emfield.module.
Code
function emimage_imageshack_extract($embed = '') {
// http://img255.imageshack.us/my.php?image=dscn0036ky1.jpg
// http://img255.imageshack.us/img255/7682/dscn0036ky1.jpg
if (preg_match('!([^/.:@]+)\\.imageshack\\.us/(([^/]+)/([^/]+)/|my.php\\?image=)?(.+)$!i', $embed, $matches)) {
return $matches[5];
}
return array();
}