Integration with Libraries API

Created on 2 October 2025, 10 days ago

Problem/Motivation

The Libraries API module ( https://www.drupal.org/project/libraries ) manages libraries hierarchically (e.g., drupal-folder/libraries at the site root, drupal-folder/sites/all/libraries, drupal-folder/sites/default/libraries, or drupal-folder/sites/mysite.com/libraries).
This functionality is useful for multisite installations and other specific scenarios.

Steps to reproduce

Install the Clientside Validation module.

Place a validation library in any of the hierarchical library directories managed by the Libraries API, for example:
- drupal-folder/sites/all/libraries
- drupal-folder/sites/default/libraries
- drupal-folder/sites/mysite.com/libraries

Open the module’s configuration page, disable the “Use CDN” option, and save the settings.
Attempt to submit a form that relies on the library. The submission fails because the module cannot locate the locally‑stored library.

Proposed resolution

Refactor the module’s code so that it queries the Libraries API to locate and load local libraries. This will allow the validation scripts to be discovered regardless of which hierarchical directory they reside in.

Remaining tasks

Community review and feedback.
Comprehensive testing across single‑site and multisite installations.

User interface changes

No UI changes are required; the integration will work transparently to the end‑user.

API changes

-

Data model changes

-

Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇧🇷Brazil gerson.analista

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024