[development] module_exists vs. functions_exists?

Earnie Boyd earnie at users.sourceforge.net
Thu Jun 26 18:36:02 UTC 2008


Quoting Darrel O'Pry <darrel.opry at gmail.com>:

> On Wed, Jun 25, 2008 at 1:06 PM, Adrian Rossouw <adrian at bryght.com> wrote:
>
>>
>> On 25 Jun 2008, at 6:01 PM, Aaron Winborn wrote:
>>
>>
>>> There's no easy answer for the first case, other than bloating your code
>>> with additional drupal_function_exists checks, and the second would require
>>> tracking module version (at least its major version).
>>>
>> we need this anyway.
>>
>> badly.
>
>
> drupal_function_exists or module version tracking?  I know it would be great
> to have it centralized, but currently requirement checking can be done in
> hook_requirements.. although
> it would be nice to have some automagic in .info for it.
>

Ooo, cool deal.  With the Module Versions module[1] I just created you 
could write a hook for the requirement which is then displayed on the 
status page.

[1] http://drupal.org/project/modver

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/



More information about the development mailing list