By NewToDruballer on
Hi,
I just wanted to know, how to edit modules such as the forum and keep the module itself updateable.
In detail, I want to extend the forum on certain parts or delete some things, which I do not need, in my actual project. But when there will be some updates, the module and its functionality will surely be broken, if I change the files and later on, there are updates etc.
So how is it supposed to work. Some links might be sufficient.
My templateengine is phptemplate.
Thanks so much.
Druballer
Comments
=-=
take a look at flatforum and how it does what you ask. from there you can build on it on drupal5 checkout the HEAD version of flatforum.
I would suggest you look at
I would suggest you look at form_alter hook, in order to re-arrange, remove or add new elements to forms before they are rendered. You'll probably want to do custom processing when those modified forms are submitted, so what you have to do is:
in the form_alter, add your own function to the form['#submit'] array.
For an example, check out logintoboggan and how they override the whole login procedure...
btw: If you want to be sure your version of the submit function runs BEFORE the modules default submit function, then you must make sure your array element in form['#submit'] goes first.
Good luck