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.
Putting PHP libraries inside module directories causes all kinds of source control and drush hell.
It would be great if this module could support the libraries api: http://drupal.org/project/libraries (and if it's not there, just look in sites/all/libraries anyway)
Comment | File | Size | Author |
---|---|---|---|
#1 | backup_migrate.libraries_support.patch | 2.67 KB | rfay |
Comments
Comment #1
rfayAnd here's a patch to do it. This supports current installations, library locations provided by libraries api, and also just sites/all/libraries.
Comment #2
ronan CreditAttribution: ronan commentedPhenomenal, thank you!
I'll get this committed and backported as soon as I have a minute.
Comment #3
akalata CreditAttribution: akalata commentedThanks @rfay! I was able to apply #1 to 6.x-2.x-dev without issue.
Comment #4
ronan CreditAttribution: ronan commentedCommited to both 6.x and 7.x branch. Thanks!
Comment #5
shaisamuel CreditAttribution: shaisamuel commentedThis is great.
The documentation and the error message when the library is missing should update to reflect the new and better position.
Comment #7
JordanMagnuson CreditAttribution: JordanMagnuson commentedDocumentation and error messages still need to be updated.
If the user has libraries api installed, module should advise to place S3.php in sites/all/libraries/s3-php5-curl.
Comment #8
ronan CreditAttribution: ronan commentedThis is better documented and has a better error now.