Download libraries-7.x-2.2.tar.gztar.gz 32.54 KB
MD5: 629663be1ddbbc79531ab98d7d3761dc
SHA-1: 76ce7e7b552a08d818cf3a6d1c62a2b1328ca8c5
SHA-256: 51c7e3419bc9423d5c9766eb705ccf15c220f23bce31f507a32734e79c7a0925
Download libraries-7.x-2.2.zipzip 45.76 KB
MD5: 217bad5a2ce6472186ad5dde0ddc9273
SHA-1: 46927c4c4fa9b3c382200f73a0157d704aaa5f14
SHA-256: b495981722607093e9e74c714add5836a5d1c1f1c6cc07a0fba1b9ae506fcb25

Release info

Created by: tstoeckler
Created on: February 9, 2014 - 17:08
Last updated: May 12, 2016 - 18:23
Core compatibility: 7.x
Release type: Bug fixes, New features

Release notes

Please note that you need to clear caches after applying this update!

The most important change of this release is that theme-provided library information now actually works. Themes can implement hook_libraries_info() in their template.php just like modules. This supposedly worked in 7.x-2.1 already but did not work correctly.

Another change is that libraries can now declare their integration files to be loaded after the actual library files. This is useful for e.g. PHP libraries where the integration files want to make use of functions provided by the library.

To achieve this, libraries should set the post-load integration files key to TRUE.

A full list of changes:
#2046919: docs should state that one of 'version' or 'version callback' is needed in hook_libraries_info() by tstoeckler: Clarify 'version' docs.
#1946110: machine-name.libraries.info restricted to lower case... by munroe_richard: Allow uppercase letters as library machine names.
#1953260: Improve documentation of libraries_get_version() 'path' option. by tstoeckler: Improve documentation of libraries_get_version().
#1855918: Load integration files after library files have been loaded by tstoeckler: Make integration file loading backwards-compatible.
#1876124: hook_libraries_info() still doesn't work with themes by tstoeckler: Fix integration files for themes.
#1876124: hook_libraries_info() still doesn't work with themes by tstoeckler: Add tests for theme-provided library information.
#1876124: hook_libraries_info() still doesn't work with themes by tstoeckler: Prepare for adding a test theme.
#1876124: hook_libraries_info() still doesn't work with themes by tstoeckler | whastings, fubhy: Fix hook_libraries_info() for themes.
#2015721: Adding a role to a user throws a php error by tstoeckler, CaptainHook: Protect against files overriding local variables.
#2046919: docs should state that one of 'version' or 'version callback' is needed in hook_libraries_info() by tstoeckler: Improve documentation around 'version callback'.
#1844272: Spelling mistake by tstoeckler, jweowu: Fix typos in libraries.api.php.
#1938638: Cached libraries (with corrupt data structure) are being loaded on update.php before the update from 2.0 to 2.1 by tstoeckler: Prevent weird PHP notice on update.
#1329388: Flush all static caches via libraries_flush_caches() by RobLoach, tstoeckler: Clear static caches in libraries_flush_caches().
#1855918: Load integration files after library files have been loaded by rbayliss: Load integration files after library files.
#1938638: Cached libraries (with corrupt data structure) are being loaded on update.php before the update from 2.0 to 2.1 by Pol: Fix typo in libraries.api.php.