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.
Problem/Motivation
Currently, there is no way to control the visibility of the script rendered by the module. If the script is not required we need to uninstall the module.
Proposed resolution
Add a Enable/Disable switch in the configuration form to stop rendering or enable rendering the JS code in footer.
Remaining tasks
Add a patch
User interface changes
A new field will be added in the Adobe configuration form to enable or disable the script rendering.
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 2997789.patch | 2.13 KB | imalabya |
Comments
Comment #2
imalabyaPatch to add a radio field to enable to disable the rendering of the JS code.
Comment #3
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer and at Appnovation for Pfizer, Inc. commentedCurious, what's the use case for having the module enabled but not display the JS script?
My review:
This should be a checkbox.
This should be
$this->t('Enabled'),
I think if it's decided to include this new option we'll probably need:
Comment #4
m4oliveiI share @Manuel Garcia's curiosity.
Could you articulate in the issue discription your use case?