function image_ncck_imageshack_image_url in Embedded Media Field 5
implement image_ncck_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
File
- contrib/
image_ncck/ providers/ imageshack.inc, line 76
Code
function image_ncck_imageshack_image_url($code, $data) {
if (func_num_args() == 7) {
$arg = func_get_arg(5);
$code =& $arg['data']['file'];
$data =& $arg['data'];
}
return "http://{$data['server']}.imageshack.us/{$data['a1']}/{$data['a2']}/{$code}";
}