Why not fetch only enabled modules from the database to register classes and functions?
If a function or class from some module is neccessary for another modul then the modul providing these function or class is a depency and should be enabled.

see also http://drupal.org/node/1189718

Comments

Thomas_Zahreddin’s picture

StatusFileSize
new1.21 KB

patch

dave reid’s picture

This is a straight backport of http://api.drupal.org/api/drupal/includes--registry.inc/function/_regist... from Drupal 7 core, so you should move this patch to core and fix it there first.

Thomas_Zahreddin’s picture

Hi Dave,

D7 patch for includes/registry.inc is in http://drupal.org/node/1189718

;-)