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

jhodgdon’s picture

Version: 6.x-dev » 7.x-dev

Sounds like a good plan. It should be added in both D7 and D6 versions.

jhodgdon’s picture

Status: Active » Postponed

We 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...

rfay’s picture

Status: Postponed » Active

The doc has been moved to the handbook, so this is easy to do now.

marcvangend’s picture

I do not have edit permissions on http://drupal.org/node/751826, is that because of the input filter?

jhodgdon’s picture

Project: Drupal core » Documentation
Version: 7.x-dev »
Component: documentation » Correction/Clarification

Yes it was. I have changed the input format so you should be able to edit now.

arianek’s picture

jhodgdon: anything still needed here?

marcvangend’s picture

Status: Active » Fixed

I 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).

arianek’s picture

awesome, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.