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.
pwolanin noted in IRC that notices like the following are triggered when the module is uninstalled:
Notice: Use of undefined constant TAXONOMY_ACCESS_VOCABULARY_DEFAULT - assumed 'TAXONOMY_ACCESS_VOCABULARY_DEFAULT' in taxonomy_access_schema() (line 64 of /Users/Shared/www/modules/taxonomy_access/taxonomy_access.install).
The best option seems to be just using a literal and indicating which constant is in a comment.
Comment | File | Size | Author |
---|---|---|---|
#5 | constants-schema.patch | 4.75 KB | xjm |
#3 | constants.patch | 4.76 KB | xjm |
#1 | constants.patch | 6.74 KB | xjm |
Comments
Comment #1
xjmAttached is totally untested.
Comment #3
xjmJust in
hook_schema()
.Comment #5
xjmTestbot's mom is unable to apply the patch!
Comment #6
xjmLet's add an automated test that just installs and uninstalls the module. It should fail without the patch here, and pass with it. Tagging novice to add the test.
Comment #7
Seijun CreditAttribution: Seijun commentedWhen I uninstalled TAC (using drupal), I received a string of "Use of undefined constant" errors, although drupal still said that TAC uninstalled successfully. Is there anything further I need to do, or do these errors not effect the efficiency of the uninstall?
Comment #7.0
Seijun CreditAttribution: Seijun commented.