You are here

function activity_creator_entity_delete in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  2. 8 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  3. 8.2 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  4. 8.3 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  5. 8.4 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  6. 8.5 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  7. 8.6 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  8. 8.7 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  9. 8.8 modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  10. 10.3.x modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  11. 10.1.x modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()
  12. 10.2.x modules/custom/activity_creator/activity_creator.module \activity_creator_entity_delete()

Implements hook_entity_delete().

Delete activity items when related entities are deleted.

File

modules/custom/activity_creator/activity_creator.module, line 297
Activity Creator module file.

Code

function activity_creator_entity_delete(EntityInterface $entity) {
  _activity_creator_activity_for_entity_updater('delete', $entity);
}