Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Mar 2013 at 11:00 UTC
Updated:
4 Jan 2014 at 02:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonSounds like a good thing to document that arguments are not passed by reference. Should probably also mention that if you need to pass things by reference, you can use drupal_alter() (or alter hooks in general).
Comment #2
markpavlitski commentedThis patch documents that arguments are passed by value and refers to drupal_alter() as an alternative.
Comment #3
jhodgdonThanks! I'll get this committed shortly unless one of the other maintainers gets to it first.
Comment #4
jhodgdonThanks! Committed to 8.x. Needs porting to 7.x.
Comment #5
markpavlitski commentedD7 patch attached.
Comment #6
jhodgdonThanks! Committed to 7.x.