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.
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
Comment #1
plopescCode currently return an empty array on success.
If you read first line in hook_requirements implementation, it is:
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
Comment #2
Robin Millette CreditAttribution: Robin Millette commentedI 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