Module requirements

Created on 21 July 2025, about 1 month ago

Problem/Motivation

Currently, if the required third-party library is not installed, the module may fail silently or cause cryptic JavaScript errors in the browser console. This makes it difficult for site builders to diagnose the problem.

Proposed resolution

Implement hook_requirements() to verify that the external library exists in the expected location (/libraries/library_name).

If the library is missing, an error (REQUIREMENT_ERROR) should be displayed on the Status Report page (/admin/reports/status), informing the user of the missing dependency and providing instructions on how to install it.

This will provide a better user experience and improve the module's stability.

Feature request
Status

Active

Version

1.0

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024