[support] Step 8 of basic form - rebuild
Iain william Wiseman
iwiseman at bibble.co.nz
Sat Apr 30 01:41:08 UTC 2011
Hi,
Sorry to ask a ridiculous question but in step 8 detailed at
http://drupal.org/node/717742
|
// This is the new validation handler for our Reset button. Setting
// the $form_state['rebuild'] value to TRUE, clears the form and also
// skips the submit handler.
function my_module_my_form_clear($form, &$form_state) {
$form_state['rebuild'] = TRUE;
}
|It suggests the fields should be cleared when you press the button. For
me all of the fields remain the same.
I am using drupal 7
Thanks
Iain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110430/cffe5110/attachment.html
More information about the support
mailing list