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.

Files: 
CommentFileSizeAuthor
#1 typo-in-drupal_pre_render_links-documentation-1894850-1.patch513 bytesben.bunk
PASSED: [[SimpleTest]]: [MySQL] 50,745 pass(es). View

Comments

ben.bunk’s picture

Status: Active » Needs review
FileSize
513 bytes
PASSED: [[SimpleTest]]: [MySQL] 50,745 pass(es). View

Attaching patch.

ben.bunk’s picture

This bug exists in Drupal 7 as well.

jhodgdon’s picture

Assigned: Unassigned » jhodgdon
Status: Needs review » Reviewed & tested by the community
Issue tags: +needs backport to D7

Good 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.

jhodgdon’s picture

Assigned: jhodgdon » Unassigned
Status: Reviewed & tested by the community » Fixed

Thanks again -- patch committed to both 8.x and 7.x.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Remove poor language.