Closed (fixed)
Project:
jQuery UI Multiselect
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2012 at 16:42 UTC
Updated:
23 Dec 2013 at 21:50 UTC
Jump to comment: Most recent
Comments
Comment #1
damienmckennaNo module should require Libraries, it should be completely optional.
A better solution is to check if the libraries module exists, if it does use libraries_get_path() otherwise just use the path "sites/all/libraries".
Comment #2
david lesieur commentedDamienMcKenna: Although I understand the annoyance of requiring Libraries API for a simple function, I do not like the implications of supporting multiple ways for finding libraries. We use common APIs such as Libraries API to simplify logic in "client" modules, reduce code duplication when multiple modules need the same service, and ensure consistency of behavior across modules (in this case, consistency in how modules find external libraries, which are not necessarily in 'sites/all/libraries').
So I have added the missing dependency. There are plenty of modules that already depend on Libraries API (which stands in the Top 10 most installed D7 modules).