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.
If the user, after unwittingly deleting the underlying "Gallery collections" , re-enables the module, the settings page will throw a 500 error because the underlying vocabulary object will be null.
The module should create the underlying "Gallery collections" vocabulary on hook_enable, not hook_install.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1585864_missing-media-gallery-vocab_2.patch | 6.27 KB | jessebeach |
#1 | 1585864_missing-media-gallery-vocab_1.patch | 6.01 KB | jessebeach |
Comments
Comment #1
jessebeach CreditAttribution: jessebeach commentedMy solution is perhaps a bit dirty. I'm attempting to maintain the integrity of the vocabulary and the default gallery tag in that vocabulary when the Media Gallery module is enabled. I can't come up with a clever way to hide the Gallery collections vocabulary and prevent it from being deleted when the module is installed but disabled.
Comment #2
jessebeach CreditAttribution: jessebeach commentedFix a small issue on site install if this module is included as a required module or if this module is enabled for the first time without any media gallery items present on the site.
Comment #3
ivnish CreditAttribution: ivnish commented