Last updated March 15, 2013. Created by tstoeckler on October 7, 2010.
Edited by marvil07, arianek. Log in to edit this page.
This is a central hub for all Libraries API documentation. See the child pages for more information.
Last updated March 15, 2013. Created by tstoeckler on October 7, 2010.
Edited by marvil07, arianek. Log in to edit this page.
This is a central hub for all Libraries API documentation. See the child pages for more information.
Comments
How about updates?
Hi, I' ve integrated the libraries api in the epub module, but I was wondering what' s the best way(if any) to make the update procedures to automatically move the libraries. I think hook_update() is not meant to deal with this kind of problem, but still I' d like to avoid to ask the user to do move things manually, because it could break the module' s functionalities in case it is note done. Have you got any suggestions?
Claudio Beatrice
agavee.com
What you could do to nudge
What you could do to nudge users to move the library is show a warning message somewhere in the UI, but still support the old location. Then in the next release, you can remove the support for the old location.
Deleted
Deleted
I have a simple question
If a module properly implements the D7 hook_library() or the D8 hook_library() and hook_library_info(), why would you need a Libaries API module?
I installed one module that did not work because of a bug in the Libraries API module. After posting on the issue queue, the answer was to use the Libraries 1.0 version. The problem was I had another module that was dependent on the Libraries 2.0 version.
Changing one line of code in each dependent module was all that was necesssary to eliminate the need for the Libraries API module.
I have also seen a case where a bug was reported and code was changed because adding the Libraries API module caused a problem -- a case of the tail wagging the dog.
A third party library can be in any number of locations /sites/all/libraries, <site>/libraries, <profile>/libraries or at some URL on a content delivery network (CDN). A proper hook_library() and hook_library_info() should be able to specify which library (and even version) to use. That is a responsibilty of the module developer and they should be given the ability to specify a library without having to battle with the quirks in the different versions and behaviors of a Libraries API module.
I have read the comments on this page and the child pages that follow. The Libraries API module is creating a lot of confusion and frustration.
Is this module really necessary?