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.
Remove the JS addition from eloqua_init()
and move it to an ['#attached']
array element on a form via an alter.
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff.txt | 892 bytes | Albert Volkman |
#5 | 2191223--5-visibility.patch | 6.93 KB | Albert Volkman |
#2 | 2191223--2-visibility.patch | 6.92 KB | drupalninja99 |
Comments
Comment #1
drupalninja99 CreditAttribution: drupalninja99 commentedI will add in some visibility settings like you see in other modules.
Comment #2
drupalninja99 CreditAttribution: drupalninja99 commentedI have a patch that looks like it works pretty good. I stole it from Pardot who stole it from google analytics.
Comment #3
Albert Volkman CreditAttribution: Albert Volkman commentedWondering... since this javascript is only used in tandem with forms, would it be better to move it out of hook_init() and into a hook_form_alter()?
Comment #4
drupalninja99 CreditAttribution: drupalninja99 commentedNo Eloqua is used on every page for tracking. Thats why I added the visibility stuff so admins could have more control.
Comment #5
Albert Volkman CreditAttribution: Albert Volkman commentedOne small fix to the comments.
Comment #6
drupalninja99 CreditAttribution: drupalninja99 commentedPushed to 7.x-1.x. The Drupal.org packager is having problems but I will try to put out a new release this week.