function emimage_photobucket_image_url in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emimage/providers/photobucket.inc \emimage_photobucket_image_url()
implement emimage_PROVIDER_image_url
Parameters
$code: the code of the image @param $data any stored data for the image, which may already have the title @return the url directly to the image to display
1 call to emimage_photobucket_image_url()
- emimage_photobucket_thumbnail in contrib/
emimage/ providers/ photobucket.inc
File
- contrib/
emimage/ providers/ photobucket.inc, line 88 - This include processes photobucket.com image files for use by emfield.module.
Code
function emimage_photobucket_image_url($code, $data) {
if (func_num_args() == 7) {
$arg = func_get_arg(5);
$code =& $arg['data']['file'];
$data =& $arg['data'];
}
return "http://i{$data['server']}.photobucket.com/albums/{$data['album']}/{$data['owner']}/{$code}";
}