[development] decoupling form validation from error reporting and "actions" OR different use case for DANGEROUS_SKIP_CHECK

Wim Leers work at wimleers.com
Wed May 21 15:41:01 UTC 2008


On May 21, 2008, at 15:47 , Roberto Gerola wrote:

> function storm_dependent_select_process($form, $edit, $form_state,
> $complete_form) {
>  unset($form['#needs_validation']);
>  return $form;
> }

I use #validated instead. This is more reliable, because it also skips  
user-defined validators. E.g.:

   $form['live_preview']['example'] = array(
     '#type' => 'hierarchical_select',
     '#title' => t('Preview'),
     // Skip all validation.
     '#validated' => TRUE,
   );


Wim Leers  ~  http://wimleers.com/work




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20080521/b8c98244/attachment.bin 


More information about the development mailing list