Hi, This time I didn’t do anything embarrassing. :-)
How can I extend an existing module? E.g. I want to add some features/validations in web form module. I know I MUST NOT change the code in the webform module itself. I believe there is some solution to extend a module. Something like extending a theme (sub-theme). And updating the module will not break the website.
hook_form_alter:
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function...
You can add another validation callback to the $form['#validate'] array.
Jamie Holly http://hollyit.net
On 5/27/2014 2:40 PM, Afan Pasalic wrote:
Hi, This time I didn’t do anything embarrassing. :-)
How can I extend an existing module? E.g. I want to add some features/validations in web form module. I know I MUST NOT change the code in the webform module itself. I believe there is some solution to extend a module. Something like extending a theme (sub-theme). And updating the module will not break the website.
There is also a module webforms validation
https://drupal.org/project/webform_validation
Op dinsdag 27 mei 2014 heeft Afan Pasalic drupal@afan.net het volgende geschreven:
Hi, This time I didn’t do anything embarrassing. :-)
How can I extend an existing module? E.g. I want to add some features/validations in web form module. I know I MUST NOT change the code in the webform module itself. I believe there is some solution to extend a module. Something like extending a theme (sub-theme). And updating the module will not break the website. -- [ Drupal support list | http://lists.drupal.org/ ]