4

after hook_submit

http://drupal.org

I'm still experimenting with writing small custom drupal modules.

I've maid a small module that gives the user a simple form after a certain action. All works fine, but after the form gets successfully submitted, the user gets to see the same form again.

I don't want that. When a user clicks the submit button, and form passes validation, i want a message to be shown to the user like "Thanks for submitting this form!" or something.

I've noticed that hook_submit's return value does nothing, So i was wondering how i could fix this.

Should i change my form action, or is there another solution where the user gets to stay on the same page as where he filled in the form?

Thanks

Read »
Created by Dplanet 1 year 34 weeks ago
Category: Modules   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Best published scoops - Modules

Tags for after hook_submit

Recent comments