function entity_uuid_id_cache in Universally Unique IDentifier 7
Helper caching function.
Related topics
2 calls to entity_uuid_id_cache()
- entity_get_id_by_uuid in ./
uuid.entity.inc - Helper function that retrieves entity IDs by their UUIDs.
- entity_get_uuid_by_id in ./
uuid.entity.inc - Helper function that retrieves UUIDs by their entity IDs.
2 string references to 'entity_uuid_id_cache'
- entity_get_id_by_uuid in ./
uuid.entity.inc - Helper function that retrieves entity IDs by their UUIDs.
- entity_get_uuid_by_id in ./
uuid.entity.inc - Helper function that retrieves UUIDs by their entity IDs.
File
- ./
uuid.entity.inc, line 450 - Entity related functions for UUID module.
Code
function entity_uuid_id_cache($entity_type, $ids, $revision) {
$cache =& drupal_static(__FUNCTION__, array());
if (empty($cache[$entity_type][(int) $revision])) {
$cache[$entity_type][(int) $revision] = array();
}
$cached_ids = $cache[$entity_type][(int) $revision];
return array_intersect_key($cached_ids, array_flip($ids));
}