function media_wysiwyg_entity_insert in D7 Media 7.2
Same name and namespace in other branches
- 7.4 modules/media_wysiwyg/includes/media_wysiwyg.file_usage.inc \media_wysiwyg_entity_insert()
- 7.3 modules/media_wysiwyg/includes/media_wysiwyg.file_usage.inc \media_wysiwyg_entity_insert()
Implements hook_field_attach_insert().
Track file usage for media files included in formatted text. Note that this is heavy-handed, and should be replaced when Drupal's filter system is context-aware.
File
- modules/
media_wysiwyg/ includes/ media_wysiwyg.file_usage.inc, line 15 - Functions related to the tracking the file usage of embedded media.
Code
function media_wysiwyg_entity_insert($entity, $entity_type) {
_media_wysiwyg_filter_add_file_usage_from_fields($entity_type, $entity);
}