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.

CommentFileSizeAuthor
module_hook.patch684 bytescatch

Comments

Crell’s picture

Status: Needs review » Reviewed & tested by the community

Makes perfect sense to me.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Die!

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Registry

Automatically closed -- issue fixed for 2 weeks with no activity.