function media_wysiwyg_entity_uuid_load in D7 Media 7.2
Same name and namespace in other branches
- 7.4 modules/media_wysiwyg/includes/media_wysiwyg.uuid.inc \media_wysiwyg_entity_uuid_load()
- 7.3 modules/media_wysiwyg/includes/media_wysiwyg.uuid.inc \media_wysiwyg_entity_uuid_load()
Implements hook_entity_uuid_load().
File
- modules/
media_wysiwyg/ includes/ media_wysiwyg.uuid.inc, line 11 - Functions related to adding UUID support to embedded media.
Code
function media_wysiwyg_entity_uuid_load(&$entities, $entity_type) {
// Go through all the entity's text fields and replace file IDs in media
// tokens with the corresponding UUID.
foreach ($entities as $entity) {
media_wysiwyg_filter_replace_tokens_in_all_text_fields($entity_type, $entity, 'media_wysiwyg_token_fid_to_uuid');
}
}