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.
The content lock module's hook hook_content_lock_release()
should also pass the $uid
when invoked to allow other modules to act on only certain user identifiers, etc.
Comment | File | Size | Author |
---|---|---|---|
#2 | content_lock-lock_released_hook_pass_uid-2632562-1-D7.patch | 460 bytes | amcgowanca |
Comments
Comment #2
amcgowanca CreditAttribution: amcgowanca at Appnovation commentedComment #3
alberto56 CreditAttribution: alberto56 at Dcycle commentedI'll set this to needs work because there is a discrepancy in hook invocation (content_lock_released with a "d") and in the hook definition in ./sites/all/modules/contrib/content_lock/content_lock.module (content_lock_released without a "d"). Even though that problem predates the patch, this is a good time to fix it.