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.
description =
is not escaped for JS. So, we need to check the box for bad judgement and submit the form, thus auto-enabling the module when the modules page is visited
Comment | File | Size | Author |
---|---|---|---|
#3 | you-asked-for-it-971858-3.patch | 2.37 KB | JohnAlbin |
Comments
Comment #1
chx CreditAttribution: chx commentedDont forget to submit back the form.
Comment #2
chx CreditAttribution: chx commentedOh Dmitri wrote that already. Too baaaaaaad :p
Comment #3
JohnAlbinOk. Here's a patch.
Comment #4
carlos8f CreditAttribution: carlos8f commentedLOL. +1
Comment #5
mbutcher CreditAttribution: mbutcher commentedTested, and I can verify that this patch was "rolled" like no other.
Comment #6
IceCreamYou2 CreditAttribution: IceCreamYou2 commentedWait, does this mean the module can never be disabled from the UI? What if someone installs a bad idea, realizes it's a bad idea, and then wants to remove it?
...oh, I get it.
Comment #7
dmitrig01 CreditAttribution: dmitrig01 commented@JohnAlbin you are amazing
Comment #8
carlos8f CreditAttribution: carlos8f commentedCan haz?
Comment #9
JohnAlbinFixed.
Comment #10
Dave ReidThe patch is missing critical functionality: it cannot commit itself.
Comment #11
Wim LeersThis is AWESOME :D
Comment #12
wizonesolutionsHas any body gotten the self comiting paches 2 werk? I ned this for a client. They insissted I use Bad Judgement on there sight.
Comment #13
danillonunes CreditAttribution: danillonunes commentedIf there two modules, like Module A and Module B, where:
Module A depends on Module B
&&
Module B depends on Module A
Then when them both are enabled, they cannot be disabled due to inter-dependency (on the interface, the checkboxes are disabled).
I think that can be used to ensure that a bad decision cannot be rolled back.