- Issue created by @jasonawant
When implementing hook_requirements() using 'severity' => REQUIREMENT_ERROR
during install phase within a module and drupal_check_module() fails and the module is unset from installed modules within ModulesListForm::buildModuleList(), a PHP Warning occurs b/c ModulesListConfirmForm::buildMessageList() relies on the installed modules array item here.
I suppose the underlying issue is that a module's dependencies continue to be installed regardless if the selected module can not be installed.
TBD -
$modules['dependencies'][$module]
and remove $module's dependencies from $module['install] to prevent them from being installed as well.If drupal_check_module() is performed before adding dependencies, there is a UI change in that a user will not see the confirmation form and messaging related to installing module dependencies.
N/A
N/A
TBD
Active
11.0 π₯