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.)

CommentFileSizeAuthor
#1 1382184_register_rebuild_1.patch709 byteshefox
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

Status: Active » Needs review
FileSize
709 bytes

module_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

rfay’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.