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).

Comments

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new2.93 KB

Attached 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....

dropbydrop’s picture

could you please commit this?

mrfelton’s picture

StatusFileSize
new2.96 KB

Here is one that should apply cleanly

czigor’s picture

StatusFileSize
new2.66 KB

There'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.

nicholasthompson’s picture

Status: Needs review » Fixed

Committed - thanks guys!

66e33670029355e88957ca660783d691d497dc86 -- #1353892 - integrating with Libraries module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.