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.
The documentation for arg()
doesn't report that it returns the array containing all the components of the current path, when it is called without arguments; that it's clear looking at the code, but it should be better if the documentation would point out that.
The same is true for the documentation page for Drupal 6; the function behaved differently, in Drupal 5.
Comment | File | Size | Author |
---|---|---|---|
#9 | 937508-D6.patch | 511 bytes | amateescu |
#5 | 937508-2.patch | 553 bytes | amateescu |
#3 | 937508.patch | 552 bytes | amateescu |
Comments
Comment #1
jhodgdonGracious! This should definitely be fixed.
Comment #2
jhodgdonGood project for a novice doc contributor
Comment #3
amateescu CreditAttribution: amateescu commentedThe novice contributor strikes again :)
Comment #4
apadernoIt misses a period.
Comment #5
amateescu CreditAttribution: amateescu commentedRight, thanks!
Comment #6
jhodgdonThat's better, thanks!
Comment #7
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Nice.
Comment #8
jhodgdonWe should port this fix to Drupal 6 as well.
Comment #9
amateescu CreditAttribution: amateescu commentedHere is a patch for D6.
Comment #10
jhodgdonThanks, the D6 patch looks good too. amateescu -- your recent work is much appreciated!
Comment #11
amateescu CreditAttribution: amateescu commentedThank you :) I've been using drupal for a few months and i thought it was time to start helping this incredible community.
Right now i'm working through the novice queue but in a little while i have plans to start/maintain some modules and.. who knows, maybe some serious work for D8 :)
Comment #12
Gábor HojtsyThanks, committed. Looking forward for your future contributions, keep it up!