function emimage_imageshack_image_url in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emimage/providers/imageshack.inc \emimage_imageshack_image_url()
Implements emimage_PROVIDER_image_url.
Parameters
$code: The provider code of the image. @param $width @param $height The dimensions of the photo to display. @return The url directly to the image to display.
File
- contrib/
emimage/ providers/ imageshack.inc, line 93 - This include processes imageshack.com image files for use by emfield.module.
Code
function emimage_imageshack_image_url($code, $width, $height, $formatter = NULL, $field = NULL, $item = NULL, $node = NULL) {
if (is_array($item)) {
$file = $item['data']['file'];
$data = $item['data'] ? unserialize($arg['data']) : $arg['data'];
return "http://{$data['server']}.imageshack.us/{$data['a1']}/{$data['a2']}/{$file}";
}
}