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.
This is hotfix for 6.x-2.1 release allow you to utilize htmlpurifier library in standard libraries directory of your drupal instance, with the help of Libraries API http://drupal.org/project/libraries
Current location become a problem when using with drush_make, see #628198: Allow library downloads into a directory that already exists Other than that just a matter of personal preferable :)
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#1 | htmlpurifier-library.patch | 3.17 KB | wik |
Comments
Comment #1
wik CreditAttribution: wik commentedComment #2
ezyang CreditAttribution: ezyang commentedThanks for the patch! I'm trying to figure out how to make this transition work properly without breaking users autoinstalls (as it stands, if they don't have the libraries API installed and they update their files, everything breaks horribly).
Comment #3
wik CreditAttribution: wik commentedEasiest way it's to bundle/utilizing libraries API(two methods) with module, prefixing methods with "htmlpurifier_", but I would consider this one only if there no other choice :)
It's could be done as BC wrapper, which could check if there libraries API installed already and use it if so, or use simplified internal methods if it's not installed.
Comment #4
ezyang CreditAttribution: ezyang commentedI've posted an issue here: #709526: How to gracefully add support for libraries
I've hacked in a BC layer on my local copy (I can share if others are interested), but there's another interesting problem namely now you can't /disable/ the module.
Comment #5
j0nathan CreditAttribution: j0nathan commentedsubscribing
Comment #6
ezyang CreditAttribution: ezyang commented#709526: How to gracefully add support for libraries was resolved. Blocking on me removing the dependency and making sure everything checks out.
Comment #7
TravisCarden CreditAttribution: TravisCarden commentedSweet! Subscribing.
Comment #8
TravisCarden CreditAttribution: TravisCarden commentedMaking title more "skimmable".
Comment #9
ezyang CreditAttribution: ezyang commentedI spent some cycles today looking at the new approach, and I've found that we need to be careful about cases in which a user has an old-style installed HTML Purifier, and then they install libraries. Patch needs more work.
Comment #10
ezyang CreditAttribution: ezyang commentedFixed in CVS.