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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ben.bunk’s picture

Status: Active » Needs review
FileSize
513 bytes

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.