Timeline for How do I remove a validation handler from a form?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 28, 2016 at 13:04 | history | edited | ccjjmartin | CC BY-SA 3.0 |
added 38 characters in body
|
Mar 28, 2016 at 13:01 | comment | added | ccjjmartin | Changed the code above to set #validate to an empty array then push your custom handler on to the list | |
Mar 28, 2016 at 12:59 | history | edited | ccjjmartin | CC BY-SA 3.0 |
added 38 characters in body
|
Mar 28, 2016 at 10:59 | comment | added | Manikandan | try this,$form['#validate'] = array(''your_custom_validate_handler'); | |
S Mar 28, 2016 at 10:58 | history | edited | J. Reynolds | CC BY-SA 3.0 |
This will override the default validation,to execute custom module first changed the module weight
|
S Mar 28, 2016 at 10:58 | history | suggested | user49951 | CC BY-SA 3.0 |
This will override the default validation,to execute custom module first changed the module weight
|
Mar 28, 2016 at 10:42 | review | Suggested edits | |||
S Mar 28, 2016 at 10:58 | |||||
Mar 28, 2016 at 7:18 | comment | added | user49951 | Your code goes to a blank page..Any idea? | |
Mar 28, 2016 at 6:34 | comment | added | ccjjmartin |
Did you create a custom module? Change custom_module to your custom modules name? Change your_form_id to the form_id you desired? Change your_custom_validate_handler to the function name you desired? And finally cleared the cache?
|
|
Mar 28, 2016 at 6:30 | comment | added | ccjjmartin |
The latest version of the module has $form['#validate'][] = 'invite_by_email_form_invite_form_validate'; which will be overwritten if your custom module has a system weight greater than this modules or if your custom module has a name alphabetically after invite_by_email
|
|
Mar 28, 2016 at 6:28 | comment | added | user49951 | I have getting blank page with these code???? | |
Mar 28, 2016 at 6:21 | comment | added | user49951 | Thank you for your answer.But I have little bit of problem.The invite module already using hook_form_alter function, I want to cancel that validation too.Is this code is enough to solve my problem?? | |
Mar 28, 2016 at 5:56 | history | edited | Adeel Nawaz | CC BY-SA 3.0 |
improve formating
|
Mar 28, 2016 at 5:37 | history | answered | ccjjmartin | CC BY-SA 3.0 |