Two errors, $form['#submit'] and $form['#validate'] no longer support custom parameters
and Validation for specific form elements now uses the #element_validate property
, that I'm getting while working on a module took a bit of time to hunt down the documentation for. It would be lovely if these were linked to http://drupal.org/node/144132#custom-params and http://drupal.org/node/144132#element-validate respectively.
The attached patch fixes this, but I'm unsure about what to do with '#source' => 'allphp', so that one's currently all over the place. I couldn't figure out any obvious naming standards either, so that might need to be tweaked as well. But all in all, this patch does what it's supposed to, it just needs a knowledgeable hand to fix a few of the current curiosities. :)
(I also wasn't sure whether to consider this a bug report or feature request, so feel free to re-categorise.)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | coder.d6.formapi_doc_links.patch | 2.07 KB | Freso |
| coder.d6.formapi_doc_links.patch | 2.13 KB | Freso |
Comments
Comment #1
douggreen commentedThanks! You don't need the #source in the warning callbacks.
Comment #2
Freso commentedAlright. So they (=
#source) should not be there at all, or should they still be included in thecoder_6x_reviews()array? How about naming standards? Should I re-roll this or will you give it a whirl in your knowledgeable hands? :)Comment #3
Freso commented#223908: D6 modules should now use menu_get_object() broke the patch, so here's a re-roll. Note that
#sourceis still in thecoder_6x_reviews()array, but has been removed from the callback functions.Comment #4
douggreen commentedThanks! I committed it to the 5.x and 6.x branches.
Comment #5
Freso commentedAre you sure it's committed? It doesn't show up in cvs.drupal.org under any branch and it doesn't come with
cvs upeither.Comment #6
douggreen commentedHmm, I don't know what happened, I've committed it now.
Comment #7
Freso commentedWell, it has indeed gone in now, so hopefully folks encountering these warnings in the future will have easier access to documentation. So it's all good! :D
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.