Today I helped someone theming a form with a theme function: http://stackoverflow.com/questions/2295443/drupal-form-override-theme-fu.... It turned out that he hadn't realized that hook_theme is needed.
On http://api.drupal.org/api/drupal/developer--topics--forms_api.html, where it says "A few things to note:", I suggest that we add:
7. Don't forget to register the theme function by implementing <a href="http://api.drupal.org/api/function/hook_theme/6">hook_theme</a>().
Comments
Comment #1
jhodgdonSounds like a good plan. It should be added in both D7 and D6 versions.
Comment #2
jhodgdonWe are probably going to move the quick start guide into the drupal.org on-line handbook. See #642976: Move 3 documents out of contributions/developer/topics and into the handbook. Postponing this issue for the moment...
Comment #3
rfayThe doc has been moved to the handbook, so this is easy to do now.
Comment #4
marcvangendI do not have edit permissions on http://drupal.org/node/751826, is that because of the input filter?
Comment #5
jhodgdonYes it was. I have changed the input format so you should be able to edit now.
Comment #6
arianek commentedjhodgdon: anything still needed here?
Comment #7
marcvangendI think I missed comment #5 back then, so this hadn't been done yet. It's fixed now (http://drupal.org/node/751826/revisions/view/1145654/1264282).
Comment #8
arianek commentedawesome, thanks!