hook_requirements need to return a array (also on success). Otherwise you get a notice in $phase == 'install'. I create a installation profile with your module and get a warning.

Comments

plopesc’s picture

Status: Active » Postponed (maintainer needs more info)

Code currently return an empty array on success.

If you read first line in hook_requirements implementation, it is:

  $errors = array();

Then, after processing, if success, $errors is not modified and returned at the end of the method.

Could you explain me better your problem, please?

Regards

Robin Millette’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

I think this was fixed in the dev version, after beta3. The array is always returned, unlike with beta3 where it was only returned if it wasn't empty: http://drupalcode.org/project/jquery_colorpicker.git/blob/837ae3b1fc211c...

Ah, it's actually a dupe: #1414434: jquery_colorpicker_requirements() does not return a value; install profiles that include jquery_colorpicker fail