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
    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 '17 at 9:23
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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