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.
It would be nice if the list of services provided by on_the_web_get_services() was alterable by other modules.
Comment | File | Size | Author |
---|---|---|---|
#4 | alter-services-4.patch | 604 bytes | c31ck |
#1 | alter-services-1.patch | 758 bytes | c31ck |
Comments
Comment #1
c31ck CreditAttribution: c31ck commentedPatch that lets other modules change the list of services. This is off course not an ideal solution, but it gives other modules a chance to quickly re-order the services and/or remove some of them.
Comment #2
jenlamptonThis looks like a very elegant solution, actually. :)
I couldn't get your patch to apply to the dev branch, but I did exactly the same thing, and attributed the commit to you. This feature should be in the next release.
Thanks for this!
Comment #3
c31ck CreditAttribution: c31ck commentedThanks for the commit attribution and the quick response :)
Comment #4
c31ck CreditAttribution: c31ck commentedI think you forgot a piece of code in http://drupalcode.org/project/on_the_web.git/commitdiff/0c6ecfaac8bce53b.... The array is returned before the drupal_alter is called.
Attached you'll find a patch against 7.x HEAD that should apply.
Comment #5
jenlamptonPlease go ahead and commit to 7.x, and can you check 6.x to make sure we still have feature parody?
Comment #6
c31ck CreditAttribution: c31ck commentedFixed in c1f32f73daf0cb350d5c08588bd65721e14e1f96.
Comment #7
c31ck CreditAttribution: c31ck commentedSetting status for backport to 6.x.
Comment #8
jenlamptonSame change applied to D6 branch.