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.

Download Size md5 hash
libraries-7.x-2.2.tar.gz 32.54 KB 629663be1ddbbc79531ab98d7d3761dc
libraries-7.x-2.2.zip 45.76 KB 217bad5a2ce6472186ad5dde0ddc9273
Last updated: February 9, 2014 - 17:08
View change notices for this release
Official release from tag: 
7.x-2.2