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.
Background:
This issue is part of the meta-issue for updating the hook_help texts of the Drupal 8 modules:
#1908570: [meta] Update or create hook_help() texts for D8 core modules
Tasks:
- review / write the hook_help text according to help guidelines http://drupal.org/node/632280
More details are on the meta-issue.
Comment | File | Size | Author |
---|---|---|---|
#16 | 2103045-remove-lines.patch | 1.39 KB | jhodgdon |
#13 | xmlrpc_updated_help-documentation.2103045-12.patch | 1.44 KB | batigolix |
Comments
Comment #1
petrpo CreditAttribution: petrpo commentedPatch corrects docs according to D8 documentaion.
Comment #2
petrpo CreditAttribution: petrpo commentedsimpletest.me went ok & qa as well. Ready for comments and reviews.
Comment #3
jhodgdonThis help text does not follow the guidelines/tempate for hook_help() (link is in the issue summary). Thanks for the URL fixes... but it needs more work.
Comment #4
batigolixPatch:
- adds link to wikipedia
- adds "about" header
- adds link to xml-rpc docs page on d.o.
- brings text in line with guidelines
For the link to xmlrpc.php I followed the example of links to update.php.
The text could still need a bit of re-writing
Comment #6
jhodgdon#4: xmlrpc_updated_help-documentation.2103045-4.patch queued for re-testing.
Comment #7
jhodgdonThanks, and sorry I didn't review this sooner!
There are a couple of things I think still need to be addressed:
a) I think that we should not put in a link to an English Wikipedia page unless the URL is part of the text that is the first argument with t() - a translator might want to link to a translated version of that page. So instead of using a !name variable substitution, I think you should just put the URL into the text.
b) This is not very great wording: "Pointing an XML-RPC client at...". Maybe "Directing ... to"?
c) The link to the online docs still does not follow our template.
Comment #8
batigolixPatch addresses a) - c) from #7.
Regarding b), I chose a simpeler wording:
"An XML-RPC client can communicate with the site by calling xmlrpc.php"
Comment #9
batigolixsetting status
Comment #10
jhodgdonWhen you make a patch that corrects an earlier patch, and interdiff is requested.
https://drupal.org/documentation/git/interdiff
Thanks!
Anyway... I am not sure I agree with the wording "calling (a URL)". I don't think you "call" a URL. You "call" a PHP function, but you don't "call" a URL.
I'm also not sure if it is a good idea to build a URL to xmlrpc.php by using
$base_url . '/xmlrpc.php'
. Actually, this is totally unnecessary anyway -- this URL is part of the xmlrpc.routing.yml file, so you can use https://drupal.org/node/632280#url-noteComment #11
jhodgdonJust sat down next to Lin Clark for a moment and she said we should say "... make a request to (URL)" not "call (URL)". That is the correct term. Thanks!
Comment #12
batigolixPatch in #13 addresses the points made in #10 and #11
Comment #13
batigolixComment #14
petrpo CreditAttribution: petrpo commentedHi, I tried to execute simpletest.me. I was Ok.
Comment #15
jhodgdonThanks! The new patch looks good to me and has been manually tested, so it is ready to go in.
Comment #16
jhodgdonUh oh.
I was going to commit this patch but I noticed an extra space at the end of the 2nd line of xmlrpc_help(), which had to be removed.
So then I noticed tha tglobal $base_url; line at the top, which we do not need.
So I'm removing those two lines from the patch and running a retest just in case. I did not make an interdiff. The patch is the same except the first two lines
have been removed from xmlrpc_help().
Assuming the test bot agrees, this should be good to go still...
Comment #17
jhodgdonComment #18
jhodgdonThanks again everyone! Committed to 8.x.