Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Release notes
This brings contains a number of fixes including a couple new features.
Downloading libraries
Most prominently, Libraries API now has support for downloading external libraries for you using Drush. In particular, there is now a drush libraries-download
command. In order to support this, libraries need to provide a download file url
in their metadata. See hook_libraries_info() for more information.
This means that - given that Drush is available - you no longer have to figure out the exact file to download, and create a proper directory and so forth, you can just run drush ldl foo
and we do all that for you. However, we do not (yet!) automatically download libraries for you when installing a module, so you need to run drush libraries-download
yourself. As it is a new feature please do report if you are having problems with this or you have suggestions for improvements.
Libraries report
We now show a list of registered libraries in the user interface, specifically at /admin/reports/libraries
. This also includes specific information that helps with installing a library, if it isn't installed already. Like the library downloading the current UI is only a first iteration, so please open issues if you have ideas for improving it or you are experiencing problems.
Changelog
- #1884246: Drush download of defined libraries by BR0kEN, tstoeckler et al: Allow downloading libraries via Drush.
- by tstoeckler: Allow detecting all libraries by calling libraries_detect().
- by tstoeckler: Prevent LibrariesWebTestBase from being displayed in the UI.
- #819610: Provide a UI for Libraries by tstoeckler: Add tests for the Libraries UI.
- #1884246: Drush download of defined libraries by BR0kEN, tstoeckler: Show the provider in drush libraries-list
- #819610: Provide a UI for Libraries by Pol, tstoeckler: Show the provider in the UI.
- #2634732: Libraries UI should sort by title and not machine name by Rob Holmes, tstoeckler: Sort libraries by title in the UI.
- #2585395: Library version callback fails if namespace array is passed as function name by robinsonsarah01: Allow object methods as version callbacks.
- #819610: Provide a UI for Libraries by tstoeckler, Pol: Provide a status report for library information.
- #2352251: API Documentation incorrectly names hook by netw3rker: Fix incorrect hook name in libraries.api.php.
- #2352237: Drush CC does not list the libraries cache by netw3rker, tstoeckler: Allow clearing the libraries cache from Drush.
- #2193969: Undefined index: post-load integration files in libraries_load_files (solved: clear your cache) by tstoeckler: Avoid warnings for stale library caches.
- #2287529: README.txt references only D5 and D6 module installation page by drupalshrek, tstoeckler: Update installation link in README.txt.