You are here

function emimage_imageshack_image_url in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emimage/providers/imageshack.inc \emimage_imageshack_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_imageshack_image_url()
emimage_imageshack_thumbnail in contrib/emimage/providers/imageshack.inc

File

contrib/emimage/providers/imageshack.inc, line 90
This include processes imageshack.com image files for use by emfield.module.

Code

function emimage_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}";
}