0

I've Created a VBO view to "Modify entity values" .It's working fine. I need to perform an action when particular entity field gets inserted/updated.

So far I've tried hook_field_update,hook_field_storage_write, hook_field_insert, hook_field_presave. None of them are working

Any suggestions?

1
  • 1
    Do you mean when the value for a field attached to a particular entity is saved/updated? There's no specific hook, you'd need to listen for hook_entity_update and check the value of the field against the original entity
    – Clive
    Jun 28, 2017 at 9:23

1 Answer 1

1

Why not use a hook_entity_update()? This hook gets triggered as soon as an entity gets updated. Inside the hook you should include some logic with respect to your field.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.