use hook_requirements to communicate if module is setup properly

moshe weitzman - December 2, 2007 - 14:16
Project:Visualize Backtrace
Version:5.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

You can check for xdebug extension and other config in hook_requirements and throw an error if all is not well. this shows up in status report, and can optionally block install of the module. this is a more modern way to do requirements checking than on admin/settings page ... you could also hyperlink any references to the INSTALL.txt file.

#1

KentBye - December 4, 2007 - 21:48
Version:6.x-1.x-dev» 5.x-1.1

Thanks Moshe.
I'll take a look at the http://api.drupal.org/api/function/hook_requirements/5 spec for the next 5.x-1.x release, and before the revamped port upgrade to 6.x

 
 

Drupal is a registered trademark of Dries Buytaert.