Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Working on tracking ad clicks so that userpoints can be accumulated for members on a site when they click an ad.
My module is unable to attach any click events as the Ad module is not calling the attachBehaviors method.
I can override your theme function that renders the javascript in the Ad div, but thought I might pass this on.
If your module could add this feature it would be great for other developers to manage the modified DOM in a nice drupal way.
Cheers,
Gord.
Comments
Comment #1
Jeremy CreditAttribution: Jeremy commentedCan you provide an example of how this would be implemented? I'm not familiar with this function.