Re: Extending existing module

Jamie Holly <[email protected]>
Newsgroups gmane.comp.php.drupal.support
Message-ID <[email protected]>
hook_form_alter:

https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_form_alter/7

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.

-- 
[ Drupal support list | http://lists.drupal.org/ ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.