API documentation shows that hook_view() takes two parameters, the node and the view mode. However, node_build_content() shows hook_view() being invoked with three parameters, the third being the $langcode.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2453389-4.patch | 1022 bytes | rpayanm |
| #4 | 2453389-interdiff.txt | 560 bytes | rpayanm |
Comments
Comment #1
jhodgdonAgreed, good catch! Just needs a patch. Note: doesn't exist in Drupal 8.
Comment #2
joshi.rohit100Updated. Took the $langcode documentation from node_build_content().
Comment #3
jhodgdonLooks good, thanks! Can you add a blank line between the last @param and the @return?
Comment #4
rpayanmComment #5
jhodgdonThanks!
Comment #6
David_Rothstein commentedCommitted to 7.x - thanks!