Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In the Form API documentation for the 'item' element (http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#item), a link is provided as a usage example. However, this link points to contact.module, whereas the function where the 'item' element is used now resides in contact.pages.inc.
I recommend changing the 'usage example' link (found at the above URL) from http://api.drupal.org/api/drupal/modules!contact!contact.module/7 to http://api.drupal.org/api/drupal/modules!contact!contact.pages.inc/7.
Comment | File | Size | Author |
---|---|---|---|
#2 | update_item_usage_example_link-1865248-2.patch | 807 bytes | BWPanda |
Comments
Comment #1
jhodgdonThanks! The form API reference is actually in the Documentation git repository, so moving to that project. Patches welcome. :)
Comment #2
BWPanda CreditAttribution: BWPanda commentedAh, thanks for pointing that out. I was originally going to post to the Documentation issue queue, but then saw this message on its project page:
Might want to update that with a note about the Form API...
Here's a patch against the 7.x-1.x branch, however I'm a bit confused as the link I changed from doesn't match the link on api.drupal.org. Not sure how that works...
If this does indeed apply correctly, it may need to be ported up or down as appropriate.
Comment #3
jhodgdonRegarding where to file the issue, thanks for pointing that out! I've fixed the project page.
Regarding this file not matching what's on api.drupal.org... not sure what to tell you. Sometimes api.drupal.org gets out of date, but I don't think many changes have been made recently, so I'm not sure what's going on.
Comment #4
jhodgdonSorry, this fell off my radar here... We need a slightly different fix for 8.x first, then 7.x.