This module should support the Libraries API to allow the cloud zoom library to be located in locations other than the module directory (sites/all/libraries, /profiles/profilename/libraries etc).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1353892-4-cloud_zoom-libraries.patch | 2.66 KB | czigor |
| #3 | 1353892.3-cloud_zoom-libraries.patch | 2.96 KB | mrfelton |
| #1 | 1353892.1-cloud_zom-libraries.patch | 2.93 KB | mrfelton |
Comments
Comment #1
mrfelton commentedAttached patch allow the library to be loaded by the Libraries API module (if enabled), by placing the library in a directory named 'cloud-zoom' within any of the locations that the libraries api module supports. It still supports the current configuration of placing the library within the module directory, as well as also allowing the module to be loaded from any of PHP's include paths. Adapted from http://engineeredweb.com/blog/10/6/accessing-libraries-whether-drupal-or....
Comment #2
dropbydrop commentedcould you please commit this?
Comment #3
mrfelton commentedHere is one that should apply cleanly
Comment #4
czigor commentedThere's a bug in #3 if the library is not in the libraries folder but in the module folder: the returned path is 1. The following patch corrects this.
Also, this patch (and #3 too) introduces a dependency on the Libraries module.
Comment #5
nicholasthompsonCommitted - thanks guys!