Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Mar 2012 at 05:27 UTC
Updated:
29 Jul 2014 at 20:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
filijonka commentedcould you please give us the function page to which this report belongs to?
Comment #2
pfournier commentedYes, sorry I did not check the link URL.
http://api.drupal.org/api/drupal/modules!node!node.api.php/function/hook...
Comment #3
filijonka commentedchanged
Comment #4
jhodgdonGood catch! Both the example in the hook docs and the two implementations of hook_node_update_index() do indeed return strings and not arrays.
I think we can make the wording better though... "String of additional information to be indexed." is ... awkward? Can you think of a better way to say that?
And the initial patch needs to be made for 8.x.
Comment #5
filijonka commentedbetter perhaps?
Comment #6
filijonka commentedComment #7
jhodgdonMuch better!
The only thing to fix is that the return value type should be lower-case "string", not upper-case "String". See
http://drupal.org/node/1354#param-return-data-type
Comment #8
filijonka commentedwhen things are to easy we rush through them..sorry for wasting the time on trivia stuff
Comment #9
jhodgdonThat looks fine, thanks! I'll get it committed shortly.
Comment #10
jhodgdonCommitted to 8.x and 7.x.