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.
Hi,
trying to add this module as part of a personal distribution, but this module raise an erreur, because the hook_requirements do not reteun an array.
Does this is the expected behaviour (I mean this module is maybe not supposed to be part as a distribution, since it is a kind of "dev" module) ?
By the way just adding the return of an empty array in this hook solve the problem :
/**
* Implements hook_requirements().
*/
function upgrade_status_requirements($phase) {
if ($phase == 'install') {
// Check if the Drupal Finder is available. This will attempt to autoload
// the class, so we can bail out as soon as possible.
if (!class_exists('DrupalFinder\DrupalFinder')) {
return [
'upgrade_status' => [
'description' => t('External dependencies for Upgrade Status are not available. Composer must be used to download the module with dependencies. See <a href="@url">the Upgrade Status project page</a> for instructions.', ['@url' => 'https://drupal.org/project/upgrade_status']),
'severity' => REQUIREMENT_ERROR,
]
];
}
return []
}
}
Thank you for your answer.
Regards
Comments
Comment #2
grumpy74 CreditAttribution: grumpy74 commentedComment #3
Gábor HojtsyComment #5
Gábor HojtsyThanks, committed!