You are here

function static_map_cache_file_save in Static Map 7

Generates a new cached map image.

Parameters

string $image_url: URL to image.

string $uri: URI to image.

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

File

./staticmap.module, line 278
SiteMap module.

Code

function static_map_cache_file_save($image_url, $uri) {
  $image = file_get_contents($image_url);
  file_save_data($image, $uri, FILE_EXISTS_REPLACE);
}