hook_requirements initializes its return array as $requirements = array('varnish');.

This adds 0 => 'varnish' instead iof the desired 'varnish' => array(),

I noticed this using tha nagios module which invokes hook_requirements

The attached patch fixes this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

helmo’s picture

Component: Documentation » Code
fabsor’s picture

Status: Needs review » Fixed

Commited. Thanks!

Status: Fixed » Closed (fixed)

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

fgm’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Issue summary: View changes
Status: Closed (fixed) » Patch (to be ported)

This needs to be ported to D6 where the problem also exists.

fgm’s picture

Status: Patch (to be ported) » Needs review
FileSize
824 bytes

Suggested patch.

Outi’s picture

Status: Needs review » Reviewed & tested by the community

I tested it and it works fine for me.

  • MiSc committed c445347 on 6.x-1.x authored by fgm
    Issue #1358276 by fgm, helmo: hook_requirements adds '0' key in return...
MiSc’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to latest dev.

Status: Fixed » Closed (fixed)

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