Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
drupal_function_exists() checks for maintenance mode, so there's no need for module_hook() to as well. Additionally we should check function_exists() first since it's faster, and module_hook() can be called many times during a page request.
Comment | File | Size | Author |
---|---|---|---|
module_hook.patch | 684 bytes | catch | |
Comments
Comment #1
Crell CreditAttribution: Crell commentedMakes perfect sense to me.
Comment #2
webchickDie!
Committed to HEAD.