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.
API page: http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_r...
It would be great to have a hook that would allow alteration of text produced by render. Suggested patch attached.
Comment | File | Size | Author |
---|---|---|---|
#12 | common-addhook-46733-11.patch | 565 bytes | CarlHinton |
#11 | common-addhook-46733-10.patch | 570 bytes | CarlHinton |
#10 | common-addhook-46733-9.patch | 513 bytes | CarlHinton |
#9 | common-addhook-46733-8.patch | 525 bytes | CarlHinton |
#8 | common-addhook-46733-7.patch | 519 bytes | CarlHinton |
Comments
Comment #1
CarlHinton CreditAttribution: CarlHinton commentedA more useful patch would be the one attached below
Comment #3
CarlHinton CreditAttribution: CarlHinton commentedCorrection - the correct file attached
Comment #4
CarlHinton CreditAttribution: CarlHinton commentedCorrection - the correct file attached
Comment #5
CarlHinton CreditAttribution: CarlHinton commentedOkay this is now silly how many times I've gotten this wrong - sorry, hopefully my final correction attached
Comment #6
Damien Tournoud CreditAttribution: Damien Tournoud commentedWhat's your use-case? There are already many many ways to alter the rendering of a renderable array.
Moving to 8.x for consideration there first.
Comment #7
CarlHinton CreditAttribution: CarlHinton commentedAnother variant on this attached.
My reason for doing this, is that I do not want to alter the content on the template whilst at the same time altering the array of data earlier would be horrible for my piece of work. Changing the final rendering is a much more eloquent solution.
Comment #8
CarlHinton CreditAttribution: CarlHinton commentedThat file was wrong - try this one
Comment #9
CarlHinton CreditAttribution: CarlHinton commentedFor some strange reason the previous file would not validate
Comment #10
CarlHinton CreditAttribution: CarlHinton commentedNine attempts - this has got to be some kind of record
Comment #11
CarlHinton CreditAttribution: CarlHinton commentedAgain
Comment #12
CarlHinton CreditAttribution: CarlHinton commentedMissed a bracket
Comment #24
smustgrave CreditAttribution: smustgrave at Mobomo commentedClosing out as this doesn't seem to any longer be a request after 9 years. If you feel it's still an issue in 9.5 please reopen.