[development] Hook_entity_view ajax loaded content

Idan Arbel idan at arbel-designs.com
Mon Mar 21 10:28:49 UTC 2011



I'm using hook_entity_view() to modify and image field and display only the
first image. I've encountered a problem that with ajax loaded content, the
hook isn't fired and I get the unchanged field.


This  is happening using drupal commerce and an loaded attribute
information, you can take a look here:




at first it is loaded with only one image, but if you change the attribute
from white to anything else, and then back to white, you'll see that all the
images are loaded.


How do I make sure the hook is called on each load?






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110321/62cbbf2c/attachment.html 

More information about the development mailing list