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.
An example that was requested at Linux Fest Northwest 2012.
Comment | File | Size | Author |
---|---|---|---|
#9 | httprl-1555314-9-document-things-in-readme.patch | 5.48 KB | mikeytown2 |
#4 | httprl-1555314-4-add-in-goodies.patch | 8.53 KB | mikeytown2 |
#2 | httprl-1555314-2-add-in-goodies.patch | 5.72 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedCreated a question for this http://drupal.stackexchange.com/questions/29815/using-call-user-func-arr...
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commentedAllows for syntax this this
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedFollowing patch has been committed. Now I need to add it into the readme.
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedFixed a minor error in the documentation
6.x - http://drupalcode.org/project/httprl.git/commitdiff/22f37769bad69cd6eba4...
7.x - http://drupalcode.org/project/httprl.git/commitdiff/cd845f3a2b72b0ba31b9...
Comment #6
hass CreditAttribution: hass commentedWould be helpful to understand why we need this with some concrete examples... I'm currently asking me about the use case...
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedThe callback endpoint can now be done at database level bootstrap (full bootstrap currently). Copy httprl_caller.php to root dir... still need to workout some of the details.
Options this gives us:
- Running simple code no longer requires a full bootstrap (big speed improvement).
- Simple multi-step operations no long need a function wrapper.
- Include a file and run a function from it. Callbacks no longer need to be done in .module files.
- We can choose to bootstrap to a higher level and run code.
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedThinking about this more and I think having the RPC callback be configurable so it can load from a file or hook boot is the best option. Having it backwards compatible is possible so I don't need a 2.x version now that I think about it.
#1558456: Create hook_boot endpoint
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commenteddecided to scrap httprl_caller.php and go with hook_boot for faster execution times. Patch for readme has been committed.
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commented