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/modules!user!user.api.php/function/hoo...
The description says
If #access is defined, the method cannot be configured as default method.
but the property is called "access" without #. The # should be removed for clarification if it is wrong. It may especially lead to confusion because "#access" is common in form arrays.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2550219-6.patch | 768 bytes | Pravin Ajaaz |
#4 | 2550219-4.patch | 669 bytes | Pravin Ajaaz |
Comments
Comment #2
jhodgdonThanks for filing this! I think you are correct and #access should be access without # there.
It has apparently been fixed in Drupal 8, so this is Drupal 7 only.
Comment #3
Pravin Ajaaz CreditAttribution: Pravin Ajaaz at Ameex-Drupal Geeks commentedComment #4
Pravin Ajaaz CreditAttribution: Pravin Ajaaz at Ameex-Drupal Geeks commentedPatch to remove it
Comment #5
jhodgdonCould we put "the" in here? "... as the default method."
Looks good otherwise!
Comment #6
Pravin Ajaaz CreditAttribution: Pravin Ajaaz as a volunteer and at Ameex-Drupal Geeks commentedAs you wish :)
Comment #8
jhodgdonLooks good, thanks! Test fails are unrelated.
Comment #9
jhodgdonThe infrastructure team is looking into the test bot issue. Please do not hit "retest" yet.
Comment #10
Pravin Ajaaz CreditAttribution: Pravin Ajaaz as a volunteer and at Ameex-Drupal Geeks commentedOk sure, I won't
Comment #13
jhodgdonThe opcode problems seem to be fixed. There was a test bot glitch (missing tables in install) in a couple of tests... that seems to be a common test bot glitch, not the new opcode problem... so setting back to RTBC and presumably the auto-testing of RTBC will eventually catch this and test again.
It's a 2-line docs patch so we don't really need the tests beyond "patch applies and doesn't break PHP syntax" anyway.
Comment #14
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedCommitted to 7.x - thanks!