Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Download libraries-7.x-2.1.tar.gztar.gz
29.79 KB
MD5: e240bf43e3a4dd2d595bf24ac34d46bd
SHA-1: 8a315c63fdfeb1d3956fb5722fb35ad4e48b2bc7
SHA-256: 8db43965f14197d23f79783d66c887f8537f0ddd38a6480034b88bf300da0536
Download libraries-7.x-2.1.zipzip
39.34 KB
MD5: 7b9e5c1212e01f2f1de9ceff464abafa
SHA-1: 3c6cc330925447f7fd158b62f2b9545b39969578
SHA-256: 7ebba15557f88c46d2f5fa6278654d0e8f12fc3451fe21799e91748080b0aefd
Release notes
This is a minor update with two new features. It is fully backwards-compatible with version 7.x-2.0.
Be sure, however, to run update.php (as always)!
New features
- Themes can implement hook_libraries_info() in their template.php file. The usage is identical to that of modules.
- There is a new callback group: 'pre-dependencies-load'. Callbacks in this group are called right before the library's dependencies are loaded. When loading a library the flow now is the following:
- 'pre-dependencies-load' callbacks
- dependencies are loaded
- 'pre-load' callbacks
- library itself is loaded
- 'post-load' callbacks