Re: hook_form_alter() hooks all of Drupal forms

Posts: 2239
Joined: 08/07/2007
AdministratoreLiTe!

Most implementations I've seen of hook_form_alter() are just changing a single form. Of course, they're just testing a single $form_id, and not several like the product forms. I'm not too concerned about the performance because all of the node type info is cached in memory, and I trust in_array() to be efficient.

Multiple currencies for products By: Gordonjcp (28 replies) Tue, 09/25/2007 - 06:26