Support from Acquia helps fund testing for Drupal Acquia logo

Comments

filijonka’s picture

Status: Active » Postponed (maintainer needs more info)

could you please give us the function page to which this report belongs to?

pfournier’s picture

filijonka’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
746 bytes

changed

jhodgdon’s picture

Title: Wrong return value » Wrong return value docs for hook_node_update_index()
Version: 7.x-dev » 8.x-dev
Status: Needs review » Needs work
Issue tags: +Novice

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

filijonka’s picture

better perhaps?

filijonka’s picture

Status: Needs work » Needs review
jhodgdon’s picture

Status: Needs review » Needs work

Much 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

filijonka’s picture

Status: Needs work » Needs review
FileSize
798 bytes

when things are to easy we rush through them..sorry for wasting the time on trivia stuff

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

That looks fine, thanks! I'll get it committed shortly.

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x and 7.x.

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