Verified Commit 47d607ec authored by quietone's avatar quietone
Browse files

Issue #2982582 by arunkumark, nexusnovaz, anish.a, avpaderno, smustgrave,...

Issue #2982582 by arunkumark, nexusnovaz, anish.a, avpaderno, smustgrave, joachim, godotislate, larowlan, cburschka: hook_requirements() doesn't say that severity is optional, or what the default is

(cherry picked from commit c16b8425)
parent 46e33eda
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1094,11 +1094,12 @@ function hook_updater_info_alter(&$updaters) {
 *     install phase, this should only be used for version numbers, do not set
 *     it if not applicable.
 *   - description: The description of the requirement/status.
 *   - severity: The requirement's result/severity level, one of:
 *   - severity: (optional) The requirement's result/severity level, one of:
 *     - REQUIREMENT_INFO: For info only.
 *     - REQUIREMENT_OK: The requirement is satisfied.
 *     - REQUIREMENT_WARNING: The requirement failed with a warning.
 *     - REQUIREMENT_ERROR: The requirement failed with an error.
 *     Defaults to REQUIREMENT_OK when installing, REQUIREMENT_INFO otherwise.
 */
function hook_requirements($phase) {
  $requirements = [];