How to create form that will add content in drupal?
I can create form 开发者_Python百科with drupal forms api, but I don't know how to do hook to edit or add the content
In your form_submit
handler, you can write the contents of your form variables (such as $form_state
) to the database, or send an email, and so on.
See http://drupal.org/node/751826 for details on submitting forms.
精彩评论