a tip for module developers writing forms
19 Dec
2005
19 Dec
'05
10:55 a.m.
Hi! If you want to make your life easier, while debugging you change: // Recurse through all child elements. $count = 0; foreach (element_children($form) as $key) { to // Recurse through all child elements. $count = 0; foreach (element_children($form) as $key) { if (!is_array($form[$key])) die "the form has a wrong key $key"; this way, if you miss a # from a property name, you will get some immediate feedback. As it harms performance a bit and is not something that can happen with a 'ready' site, I see no point in adding this in any way to form.inc. If someone has an idea on where to add this to some docs, do so. Regards NK
7489
Age (days ago)
7489
Last active (days ago)
0 comments
1 participants
participants (1)
-
Karoly Negyesi