If you want to persist the field you add via form_alter, you must create a table in the database and add a custom SQL statement to save the data, perhaps via hook_nodeapi with op 'submit'.
See http://api.drupal.org/api/function/hook_nodeapi/5
Victor
2008/12/16 bharani kumar bharanikumariyerphp@gmail.com
I thing u r referring the module ,,,
Ya i saw that , but form_alter module still DEV,
but i wan to learn , "modifying the forms using the code snippet "
Thanks
On Tue, Dec 16, 2008 at 2:48 PM, Victor Kane victorkane@gmail.com wrote:
It would be a lot easier to add the field permanently to the content type, instead of adding it via form_alter.
2008/12/16 bharani kumar bharanikumariyerphp@gmail.com
Hi i find the solution ,
i coded into my examplemodule*.module* file,
i guess am correct ,
Then next step , i want to store that textfield values into my database ,
For that i thing i have to written small snippet into the install file or tell me what i do,
simple my point is i want store the textfield values into my DB
On Tue, Dec 16, 2008 at 12:49 PM, bharani kumar < bharanikumariyerphp@gmail.com> wrote:
Hi
i want to alter the birthday module form ,
like want to add one text area,So can u tell me , where i write the alter form code,
in the birthday.module file ,
Or where i write the form alter code
thanks
-- உங்கள் நண்பன் பரணி குமார்
Regards B.S.Bharanikumar
POST YOUR OPINION http://bharanikumariyer.hyperphp.com/ http://bharanikumariyerphp.site88.net/
-- உங்கள் நண்பன் பரணி குமார்
Regards B.S.Bharanikumar
POST YOUR OPINION http://bharanikumariyer.hyperphp.com/ http://bharanikumariyerphp.site88.net/
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- உங்கள் நண்பன் பரணி குமார்
Regards B.S.Bharanikumar
POST YOUR OPINION http://bharanikumariyer.hyperphp.com/ http://bharanikumariyerphp.site88.net/
-- [ Drupal support list | http://lists.drupal.org/ ]