Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21modules%21book%21src%21BookMana...
In the Parameters section:
bool $new: Is this a new book.
Should be:
bool $new: Is this a new link.
That is, "book" should be "link".
Comment | File | Size | Author |
---|
Issue fork drupal-2985165
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
valthebaldLooks like an easy fix
Comment #3
nbaosullivan CreditAttribution: nbaosullivan commentedUpdated docs as suggested.
Comment #4
nbaosullivan CreditAttribution: nbaosullivan commentedComment #5
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedAlthough I agree with this change,
$new
is about the link, the docblock is still confusing. The function description is about a book entry, while the method updates/saves a link to a book entry. Further, the return value of the method is the saved link data. "The book data of that node" is confusing and possibly incorrect.I suggest to extend the scope of the issue to fix all documentation of this method. If we do, please update the issue summary too.
Comment #6
AkashKumar07 CreditAttribution: AkashKumar07 at OpenSense Labs commentedI have made this changes, as per the suggestion. Please let me know, if any other changes has to be done.
Comment #7
GrandMasterJude CreditAttribution: GrandMasterJude as a volunteer and commentedReviewed the changes in 2985165-6.patch, changes look fine. Good job all.
Comment #8
valthebaldThere's hardly any difference between "Saves" and "Saves/Updates" (I would even say the latter is more confusing)
Of what book? We have only link data in $link parameter.
Maybe worth commenting that $link array also has information about the book? (Probably adding @see reference)
Comment #11
michaellenahan CreditAttribution: michaellenahan at Hubert Burda Media commentedComment #12
michaellenahan CreditAttribution: michaellenahan at Hubert Burda Media commentedComment #13
michaellenahan CreditAttribution: michaellenahan at Hubert Burda Media commentedComment #14
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch #6 on 9.2.x and it works fine.
Comment #15
longwaveAgree with #8, Saves/Updates is confusing.
Comment #16
ayushmishra206 CreditAttribution: ayushmishra206 at OpenSense Labs commentedMade the changes suggested. in #8. Please review.
Comment #19
vikashsoni CreditAttribution: vikashsoni as a volunteer and at Zyxware Technologies commentedApplied patch #6 on 9.3.x and it works fine and look good for me
Thanks for the patch
Comment #22
Liam MorlandI have added all three patches to an issue fork and made an additional commit to improve the documentation for the $link param.
Comment #24
smustgrave CreditAttribution: smustgrave at Mobomo commentedThe documentation change makes sense to me.
Comment #25
valthebaldI would slightly change the wording
"Saves link of a single book entry" => "Saves a link of a single book entry" or "Saves a single book entry link"
"The saved link array has information about the book." => "The book entry link information"
Comment #26
Liam MorlandI have rebased the merge request and implemented the suggestions from #25.
Comment #27
Liam MorlandRebased
Comment #28
smustgrave CreditAttribution: smustgrave at Mobomo commentedCan confirm the changes in #25 have been addressed
Hiding all the files to avoid confusion.
Comment #29
Liam MorlandI made the changes suggested by the maintainer.
Comment #30
smustgrave CreditAttribution: smustgrave at Mobomo commentedThis was very helpful personally for reviewing documentation tickets.
Changes look like they were addressed and all threads are closed.
Comment #31
longwaveCommitted and pushed 090e898157 to 10.1.x and f57cba65f9 to 10.0.x and 9813a1cc64 to 9.5.x. Thanks!