You are here

function mentions_entity_insert in Open Social 8.2

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

Implements hook_entity_insert().

File

modules/custom/mentions/mentions.module, line 48
Code for the mentions module.

Code

function mentions_entity_insert(EntityInterface $entity) {
  if (PHP_SAPI !== 'cli') {
    mentions_insert_or_update($entity, FALSE);
  }
}