While I was reviewing the patch for #2048395-14: Several field hooks are in the wrong topics/groups, I thought "Hmmm... what about Drupal 8?". It suffers from the same problem as Drupal 7 -- there are a few hooks in the core/modules/field/field.api.php file that are not properly grouped into the groups/topics.
This can be fixed by using @ingroup or @addtogroup -- see #2048395-14: Several field hooks are in the wrong topics/groups for a list of the relevant topics to use, and https://drupal.org/node/1354#defgroup for information on the syntax of ingroup/addtogroup.
The hooks that need attention in this file:
hook_field_info_max_weight - needs to be in field_info topic
OK, it's just the one hook -- just needs an @ingroup field_info added to that hook documentation. Definitely a Novice project!
Comment | File | Size | Author |
---|---|---|---|
#3 | hook_documentation-2260035-2.patch | 521 bytes | blueminds |
#1 | hook_documentation-2260035-1.patch | 690 bytes | blueminds |
Comments
Comment #1
blueminds CreditAttribution: blueminds commentedplease see the patch.
Comment #2
jhodgdonSince there is only one hook that needs adding to this topic, it would be a lot simpler just to add one line saying
to the doc block of this one hook, rather than an @addtogroup?
Comment #3
blueminds CreditAttribution: blueminds commentedThanks for feedback, updated the patch.
Comment #4
jhodgdonThanks!
Comment #5
webchickCommitted and pushed to 8.x. Thanks!