You are here

function static_map_cache_file_uri in Static Map 7

Generates the full file URI.

Parameters

string $entity_type: Type of entity.

string $entity: Entity name.

object $instance: Entity instance.

string $image_url: Relative url to image.

Return value

string Public URL to image.

1 call to static_map_cache_file_uri()
staticmap_field_formatter_view in ./staticmap.module
Implements hook_field_formatter_view().

File

./staticmap.module, line 243
SiteMap module.

Code

function static_map_cache_file_uri($entity_type, $entity, $instance, $image_url) {
  return file_default_scheme() . '://' . static_map_cache_file_prefix($entity_type, $entity, $instance) . md5($image_url) . '.png';
}