You are here

function mentions_entity_update in Open Social 10.2.x

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

Implements hook_entity_update().

File

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

Code

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