Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
function module_implements($hook, $sort = FALSE, $refresh = FALSE) {
static $implementations;
if ($refresh) {
$implementations = array();
return;
}
if (!isset($implementations[$hook])) {
$implementations[$hook] = array();
$list = module_list(FALSE, TRUE, $sort);
foreach ($list as $module) { // This is line 426
if (module_hook($module, $hook)) {
$implementations[$hook][] = $module;
}
}
}
Running the command appears to work though.
(Note: this is first time developing on snow leopard [on this computer] after upgrading from leopard, so may have some things wrong still.)
Comment | File | Size | Author |
---|---|---|---|
#1 | 1382184_register_rebuild_1.patch | 709 bytes | hefox |
Comments
Comment #1
hefox CreditAttribution: hefox commentedmodule_list is called from module_rebuild_cache, but it never checks if it's static $list is set so just returns null if hasn't been called with $reset or $static_list yet. o.O
Comment #2
rfayThanks! Committed: http://drupalcode.org/project/registry_rebuild.git/commitdiff/1bf94d1