[development] module_exists vs. functions_exists?

Aaron Winborn winborn at advomatic.com
Mon Jun 23 11:50:35 UTC 2008


Ah, didn't realize it was changing :( Guess I need to read up on this issue.

----- Original Message -----
From: "Moshe Weitzman" <weitzman at tejasa.com>
To: development at drupal.org
Sent: Sunday, June 22, 2008 7:28:04 PM GMT -05:00 US/Canada Eastern
Subject: Re: [development] module_exists vs. functions_exists?

> Come Drupal 7, you'll want to use drupal_function_exists() specifically so
> that it can lazy-load the function if needed.  I suppose that's a strike in
> favor of using function_exists() for now so that your logic is already setup
> for that.

Right ... For D6 and below, module_invoke() does the if
(function_exists()) for you. Some people prefer that pattern.


More information about the development mailing list