Download libraries-7.x-2.3.tar.gztar.gz 40.88 KB
MD5: 294d3e4096c513321159b908cfd7c2be
SHA-1: 3cd3686fea6ca517d59dd0e70d9c6375fc3e3bb8
SHA-256: 398d415c4b140b5a516b52c3ca62a1f68feda06d970fd6af3080df2f867eb032
Download libraries-7.x-2.3.zipzip 56.7 KB
MD5: 5fef9a8cef52152e2b281181cca6014b
SHA-1: 1c54f921bec25b89ce0e9312bfea606f1a07fbd4
SHA-256: d4edbdc580c36ec8ca6bb4dab8d0ed5d21e3336fbffd65ce524166ce2eb6daa5
Install with Composer: $ composer require 'drupal/libraries:^2.3'
Using Composer to manage Drupal site dependencies

Release info

Created by: tstoeckler
Created on: 12 May 2016 at 18:23 UTC
Last updated: 12 May 2016 at 18:23 UTC
Core compatibility: 7.x
Release type: Bug fixes, New features

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.