function static_map_cache_file_prefix in Static Map 7
Generates a cache prefix for the map.
Parameters
string $entity_type: Type of entity.
string $entity: Entity name.
object $instance: Entity instance.
Return value
string Unique string for cache prefix.
1 call to static_map_cache_file_prefix()
- static_map_cache_file_uri in ./
staticmap.module - Generates the full file URI.
File
- ./
staticmap.module, line 220 - SiteMap module.
Code
function static_map_cache_file_prefix($entity_type, $entity, $instance) {
$entity_ids = entity_extract_ids($entity_type, $entity);
return implode('-', array(
$entity_type,
$entity_ids[0],
$instance['id'],
));
}