Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
There is a typo in the documentation for drupal_pre_render_links().
Proposed resolution
The first example in the documentation demonstrates an assignment instead of array notation.
Change:
'#pre_render' = array('drupal_pre_render_links')
To:
'#pre_render' => array('drupal_pre_render_links')
Remaining tasks
Patch Needs review.
User interface changes
None.
API changes
None.
Original report by [username]
None.
Comment | File | Size | Author |
---|---|---|---|
#1 | typo-in-drupal_pre_render_links-documentation-1894850-1.patch | 513 bytes | ben.bunk |
Comments
Comment #1
ben.bunk CreditAttribution: ben.bunk commentedAttaching patch.
Comment #2
ben.bunk CreditAttribution: ben.bunk commentedThis bug exists in Drupal 7 as well.
Comment #3
jhodgdonGood catch, and thanks for the patch! I'll get it committed to 8.x (and maybe 7.x, or we might need a new patch for that) shortly.
Comment #4
jhodgdonThanks again -- patch committed to both 8.x and 7.x.
Comment #5.0
(not verified) CreditAttribution: commentedRemove poor language.